Skip to content

Commit

Permalink
Updating with small fix to not import classes where unncessary
Browse files Browse the repository at this point in the history
  • Loading branch information
dluman committed Jan 3, 2023
1 parent 0ec4c28 commit 8ae4612
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setuptools.setup(
name="springform",
version="0.6.0",
version="0.6.5",
packages=['springform'],
package_dir={'springform': 'src'},
include_package_data=True,
Expand Down
4 changes: 2 additions & 2 deletions src/Forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def __inherit(self) -> None:
if self.__cls:
# TODO: Find a better way to get this information with libCST or ast
# (Maybe it already exists in the _Model__instance?)
mdl = eval(f"importlib.import_module('{self.__mod}').{self.__cls}")
for base in mdl.__bases__:
mdl = eval(f"importlib.import_module('{self.__mod}')")
for base in mdl.self.__cls.__bases__:
bases.append(base.__name__)
self.__elements["bases"] = bases

Expand Down

0 comments on commit 8ae4612

Please sign in to comment.