summaryrefslogtreecommitdiffstats
path: root/Lib/abc.py
diff options
context:
space:
mode:
authorVlad Hoi <hoivladyslav@yahoo.com>2022-05-05 13:40:01 (GMT)
committerGitHub <noreply@github.com>2022-05-05 13:40:01 (GMT)
commit42fee931d055a3ef8ed31abe44603b9b2856e04d (patch)
tree91ea3744ac0ad4c67322f356b0d5b8d48bc70334 /Lib/abc.py
parenta95138b2c5a3ba3d9a1a635566e22e5843b6a45c (diff)
downloadcpython-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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/abc.py b/Lib/abc.py
index 3c552ce..42048dd 100644
--- a/Lib/abc.py
+++ b/Lib/abc.py
@@ -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