We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de9cf4d commit 359774fCopy full SHA for 359774f
lazy_loader/__init__.py
@@ -193,10 +193,10 @@ def myfunc():
193
if have_module and require is None:
194
return module
195
196
- if "." in fullname:
+ if not suppress_warning and "." in fullname:
197
msg = (
198
"subpackages can technically be lazily loaded, but it causes the "
199
- "package to be eagerly loaded even if it is already lazily loaded."
+ "package to be eagerly loaded even if it is already lazily loaded. "
200
"So, you probably shouldn't use subpackages with this lazy feature."
201
)
202
warnings.warn(msg, RuntimeWarning)
0 commit comments