We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd6f011 commit 01e433fCopy full SHA for 01e433f
peps/pep-0810.rst
@@ -1013,7 +1013,7 @@ specific modules that are known to have problematic side effects:
1013
1014
def my_filter(importer, name, fromlist):
1015
# Don't lazily import modules known to have side effects
1016
- if name in ('problematic_module', 'another_module'):
+ if name in {'problematic_module', 'another_module'}:
1017
return False # Import eagerly
1018
return True # Allow lazy import
1019
0 commit comments