diff options
author | Ivan Levkivskyi <levkivskyi@gmail.com> | 2018-04-04 16:00:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-04 16:00:15 (GMT) |
commit | ee566fe526f3d069aa313578ee81ca6cbc25ff52 (patch) | |
tree | bc494e11c8f60ec249e3b58097b40f0bfcbcad5a /Lib/typing.py | |
parent | 2eeac269dd1e04a2a179384576986c3e47895ee0 (diff) | |
download | cpython-ee566fe526f3d069aa313578ee81ca6cbc25ff52.zip cpython-ee566fe526f3d069aa313578ee81ca6cbc25ff52.tar.gz cpython-ee566fe526f3d069aa313578ee81ca6cbc25ff52.tar.bz2 |
Call super in Generic.__init_subclass__ (#6356)
Diffstat (limited to 'Lib/typing.py')
-rw-r--r-- | Lib/typing.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/typing.py b/Lib/typing.py index 510574c..3ac3b93 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -850,6 +850,7 @@ class Generic: return _GenericAlias(cls, params) def __init_subclass__(cls, *args, **kwargs): + super().__init_subclass__(*args, **kwargs) tvars = [] if '__orig_bases__' in cls.__dict__: error = Generic in cls.__orig_bases__ |