New submission from Will T <timwillo...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue33207>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to