[Python-checkins] Add `__slots__` to `typing._NotIterable` (GH-92570)
serhiy-storchaka
webhook-mailer at python.org
Tue May 10 05:18:16 EDT 2022
https://github.com/python/cpython/commit/eef47d5bc79469c2d5328d6f5a9732e44a49dd5a
commit: eef47d5bc79469c2d5328d6f5a9732e44a49dd5a
branch: main
author: Alex Waygood <Alex.Waygood at Gmail.com>
committer: serhiy-storchaka <storchaka at gmail.com>
date: 2022-05-10T12:17:54+03:00
summary:
Add `__slots__` to `typing._NotIterable` (GH-92570)
files:
M Lib/typing.py
diff --git a/Lib/typing.py b/Lib/typing.py
index 9fa4c48b45e85..306bb9fb6df78 100644
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -427,6 +427,7 @@ def __iter__(self): raise TypeError()
is treated specially.
"""
+ __slots__ = ()
__iter__ = None
More information about the Python-checkins
mailing list