Skip to content

Commit ffeae76

Browse files
BUG: Handle lazy-loading of the semivar submodule.
1 parent c52c362 commit ffeae76

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ufunclab/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@
8585

8686

8787
def __getattr__(name):
88+
if name == 'semivar':
89+
# XXX 'semivar' is currently the only public submodule that is
90+
# lazily loaded. If more are added, this special case handling
91+
# can be generalized.
92+
return _imp.import_module('.' + name, __name__)
8893
try:
8994
module_name = _name_to_module[name]
9095
except Exception:

0 commit comments

Comments
 (0)