We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87815de commit 16acc44Copy full SHA for 16acc44
src/lazy_loader/__init__.py
@@ -92,7 +92,7 @@ def __getattr__(name):
92
def __dir__():
93
return __all__.copy()
94
95
- eager_import = os.environ.get("EAGER_IMPORT", "") != "0"
+ eager_import = os.environ.get("EAGER_IMPORT", "") not in ("0", "")
96
if eager_import:
97
for attr in set(attr_to_modules.keys()) | submodules:
98
__getattr__(attr)
0 commit comments