[New-bugs-announce] [issue33207] typing.Generic does not correctly call super().__init_subclass__

Will T report at bugs.python.org
Mon Apr 2 18:01:55 EDT 2018


New submission from Will T <timwilloney at gmail.com>:

Per the docs ( https://docs.python.org/3/reference/datamodel.html#object.__init_subclass__ ) this should be chain-calling super but currently doesn't, and thus breaks base classes listed after it which depend on this functionality. Attached a test for a real-world usecase of mine. Originally noted in https://bugs.python.org/issue32162? but on a new ticket as requested. Thanks :)

----------
components: Library (Lib)
files: generic_init_subclass.py
messages: 314828
nosy: wrmsr
priority: normal
severity: normal
status: open
title: typing.Generic does not correctly call super().__init_subclass__
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file47513/generic_init_subclass.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33207>
_______________________________________


More information about the New-bugs-announce mailing list