[Python-checkins] Add `__slots__` to `typing._NotIterable` (GH-92570)
miss-islington
webhook-mailer at python.org
Tue May 10 05:45:22 EDT 2022
https://github.com/python/cpython/commit/8a2b3edcdc4e071a1c79464dcc6c40c3aee26140
commit: 8a2b3edcdc4e071a1c79464dcc6c40c3aee26140
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-05-10T02:45:17-07:00
summary:
Add `__slots__` to `typing._NotIterable` (GH-92570)
(cherry picked from commit eef47d5bc79469c2d5328d6f5a9732e44a49dd5a)
Co-authored-by: Alex Waygood <Alex.Waygood at Gmail.com>
files:
M Lib/typing.py
diff --git a/Lib/typing.py b/Lib/typing.py
index 46ef2d9cf6005..d75203e7e06c3 100644
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -417,6 +417,7 @@ def __iter__(self): raise TypeError()
is treated specially.
"""
+ __slots__ = ()
__iter__ = None
More information about the Python-checkins
mailing list