Skip to content

Commit

Permalink
refactor: remove undefined name from __all__
Browse files Browse the repository at this point in the history
`__all__`  is a list of strings defining what objects in a module will be exported when `from <module> import *` is used on the module.
Hence, all the object names mentioned in `__all__` shall be defined in the module.

This issue is raised because `__all__` contains atleast one name (See issue title for the exact name) which is not defined in the module.
When a wildcard import is attempted on the module with this guilty code, Python will throw an `AttributeError` while trying to import the undefined object.
  • Loading branch information
deepsource-autofix[bot] authored Nov 17, 2023
1 parent bfa6768 commit 3099888
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ema_workbench/em_framework/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import warnings

__all__ = [
"ema_parallel",
"parameters",
"model",
"outcomes",

0 comments on commit 3099888

Please sign in to comment.