We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
importlib/_bootstrap.py
_List
1 parent 2690a1a commit d9157c3Copy full SHA for d9157c3
Lib/importlib/_bootstrap.py
@@ -53,7 +53,7 @@ def _new_module(name):
53
54
# For a list that can have a weakref to it.
55
class _List(list):
56
- pass
+ __slots__ = ("__weakref__",)
57
58
59
# Copied from weakref.py with some simplifications and modifications unique to
0 commit comments