diff options
author | Vlad Hoi <hoivladyslav@yahoo.com> | 2022-05-05 13:40:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-05 13:40:01 (GMT) |
commit | 42fee931d055a3ef8ed31abe44603b9b2856e04d (patch) | |
tree | 91ea3744ac0ad4c67322f356b0d5b8d48bc70334 /Lib/abc.py | |
parent | a95138b2c5a3ba3d9a1a635566e22e5843b6a45c (diff) | |
download | cpython-42fee931d055a3ef8ed31abe44603b9b2856e04d.zip cpython-42fee931d055a3ef8ed31abe44603b9b2856e04d.tar.gz cpython-42fee931d055a3ef8ed31abe44603b9b2856e04d.tar.bz2 |
bpo-43827: Make arguments to abc.ABCMeta.__new__ pos-only (#25385)
To avoid conflicts with `__init__subclass__`.
Diffstat (limited to 'Lib/abc.py')
-rw-r--r-- | Lib/abc.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -102,7 +102,7 @@ else: implementations defined by the registering ABC be callable (not even via super()). """ - def __new__(mcls, name, bases, namespace, **kwargs): + def __new__(mcls, name, bases, namespace, /, **kwargs): cls = super().__new__(mcls, name, bases, namespace, **kwargs) _abc_init(cls) return cls |