We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22dcd39 commit 9f05c1eCopy full SHA for 9f05c1e
lazy_loader/__init__.py
@@ -90,13 +90,13 @@ def __getattr__(name):
90
raise AttributeError(f"No {package_name} attribute {name}")
91
92
def __dir__():
93
- return list(__all__)
+ return __all__.copy()
94
95
if os.environ.get("EAGER_IMPORT", ""):
96
for attr in set(attr_to_modules.keys()) | submodules:
97
__getattr__(attr)
98
99
- return __getattr__, __dir__, list(__all__)
+ return __getattr__, __dir__, __all__.copy()
100
101
102
class DelayedImportErrorModule(types.ModuleType):
0 commit comments