diff options
author | Gregory Beauregard <greg@greg.red> | 2022-02-05 15:50:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-05 15:50:00 (GMT) |
commit | 2f077b6991f59c51989b65618317297c1eb0fb95 (patch) | |
tree | 2f0d7ff5dfc80c7d06d4a3673ab9930414c7eb42 /Lib | |
parent | fea7290a0ecee09bbce571d4d10f5881b7ea3485 (diff) | |
download | cpython-2f077b6991f59c51989b65618317297c1eb0fb95.zip cpython-2f077b6991f59c51989b65618317297c1eb0fb95.tar.gz cpython-2f077b6991f59c51989b65618317297c1eb0fb95.tar.bz2 |
Fix __init_subclass__ using self instead of class (#31135)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/typing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/typing.py b/Lib/typing.py index 0cf9755..e4e32b5 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -349,7 +349,7 @@ class _Final: __slots__ = ('__weakref__',) - def __init_subclass__(self, /, *args, **kwds): + def __init_subclass__(cls, /, *args, **kwds): if '_root' not in kwds: raise TypeError("Cannot subclass special typing classes") |