Skip to content

Commit 8a2b3ed

Browse files
Add __slots__ to typing._NotIterable (GH-92570)
(cherry picked from commit eef47d5) Co-authored-by: Alex Waygood <[email protected]>
1 parent e4fc347 commit 8a2b3ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/typing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ def __iter__(self): raise TypeError()
417417
is treated specially.
418418
"""
419419

420+
__slots__ = ()
420421
__iter__ = None
421422

422423

0 commit comments

Comments
 (0)