Skip to content

Commit 16acc44

Browse files
stefanveffigies
andauthored
Allow EAGER_IMPORT="" to disable it
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
1 parent 87815de commit 16acc44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lazy_loader/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def __getattr__(name):
9292
def __dir__():
9393
return __all__.copy()
9494

95-
eager_import = os.environ.get("EAGER_IMPORT", "") != "0"
95+
eager_import = os.environ.get("EAGER_IMPORT", "") not in ("0", "")
9696
if eager_import:
9797
for attr in set(attr_to_modules.keys()) | submodules:
9898
__getattr__(attr)

0 commit comments

Comments
 (0)