We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccddd44 commit 87815deCopy full SHA for 87815de
2 files changed
README.md
@@ -99,7 +99,7 @@ detail](https://scientific-python.org/specs/spec-0001/#type-checkers).
99
100
With lazy loading, missing imports no longer fail upon loading the
101
library. During development and testing, you can set the `EAGER_IMPORT`
102
-environment variable to disable lazy loading.
+environment variable to a value other than "0" to disable lazy loading.
103
104
### External libraries
105
src/lazy_loader/__init__.py
@@ -92,7 +92,8 @@ def __getattr__(name):
92
def __dir__():
93
return __all__.copy()
94
95
- if os.environ.get("EAGER_IMPORT", ""):
+ eager_import = os.environ.get("EAGER_IMPORT", "") != "0"
96
+ if eager_import:
97
for attr in set(attr_to_modules.keys()) | submodules:
98
__getattr__(attr)
0 commit comments