Ethan Furman <[email protected]> added the comment:
My understanding of using keywords in class headers
class MyClass(SomeBaseClass, setting='maybe'):
...
is that the keywords would get passed into the super classes
`__init_subclass__` (`SomeBaseClass` and `setting`).
However, in the cases of
- test_descr.py
- test_py_compile.py
- typing.py
that wasn't happening -- until the initial patch of moving the calls from
`type.__new__` to `type.__init__`.
An `__init__` has been added in those three locations to discard the keyword
arguments being passed in.
----------
nosy: +rhettinger, stutzbach
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42775>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com