Remove asterisk imports from subject inits (#391)

* removed asterisk imports from subject inits

* import Generator from the right init level
This commit is contained in:
Luke Weiler
2022-12-19 02:06:10 -05:00
committed by GitHub
parent abeec27ae9
commit 20d3294a93
134 changed files with 126 additions and 146 deletions

View File

@@ -30,7 +30,7 @@ subjects = ['algebra', 'basic_math', 'calculus',
for subject in subjects:
full_file_paths = get_filepaths(subject)
full_file_paths.sort()
lines = ["from ...__init__ import *\n", "\n"]
lines = []
for item in full_file_paths:
if item[:2] != '__':
lines.append(f"from .{item} import {item}\n")