Message370888
It is not special for Generic, but happens with every type implementing __new__.
class A:
def __new__(cls, a=1, *args, **kwargs):
return object.__new__(cls)
class B(A):
def __init__(self, b):
pass
import inspect
print(inspect.signature(B))
The above example prints "(a=1, *args, **kwargs)" instead of "(b)". |
|
Date |
User |
Action |
Args |
2020-06-07 11:11:40 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, ezyang, yselivanov, levkivskyi |
2020-06-07 11:11:40 | serhiy.storchaka | set | messageid: <1591528300.18.0.75542430356.issue40897@roundup.psfhosted.org> |
2020-06-07 11:11:40 | serhiy.storchaka | link | issue40897 messages |
2020-06-07 11:11:40 | serhiy.storchaka | create | |
|