Skip to content

Commit 01e433f

Browse files
Yhg1sAA-Turner
andauthored
Update peps/pep-0810.rst
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent cd6f011 commit 01e433f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

peps/pep-0810.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ specific modules that are known to have problematic side effects:
10131013
10141014
def my_filter(importer, name, fromlist):
10151015
# Don't lazily import modules known to have side effects
1016-
if name in ('problematic_module', 'another_module'):
1016+
if name in {'problematic_module', 'another_module'}:
10171017
return False # Import eagerly
10181018
return True # Allow lazy import
10191019

0 commit comments

Comments
 (0)