File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ detail](https://scientific-python.org/specs/spec-0001/#type-checkers).
9999
100100With lazy loading, missing imports no longer fail upon loading the
101101library. During development and testing, you can set the ` EAGER_IMPORT `
102- environment variable to disable lazy loading.
102+ environment variable to "1" or "true" to disable lazy loading ("0" or "" re-enables lazy loading) .
103103
104104### External libraries
105105
Original file line number Diff line number Diff line change @@ -92,7 +92,8 @@ def __getattr__(name):
9292 def __dir__ ():
9393 return __all__ .copy ()
9494
95- if os .environ .get ("EAGER_IMPORT" , "" ):
95+ eager_import = os .environ .get ("EAGER_IMPORT" , "" ) not in ("0" , "" )
96+ if eager_import :
9697 for attr in set (attr_to_modules .keys ()) | submodules :
9798 __getattr__ (attr )
9899
You can’t perform that action at this time.
0 commit comments