Message383948
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. |
|
Date |
User |
Action |
Args |
2020-12-29 03:15:45 | ethan.furman | set | recipients:
+ ethan.furman, rhettinger, stutzbach, serhiy.storchaka |
2020-12-29 03:15:45 | ethan.furman | set | messageid: <1609211745.49.0.753820963645.issue42775@roundup.psfhosted.org> |
2020-12-29 03:15:45 | ethan.furman | link | issue42775 messages |
2020-12-29 03:15:44 | ethan.furman | create | |
|