You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
types.FunctionType is missing kwdefaults from the constructor #112640
I don't think that setting __annotations__ and __type_params__ is common enough.
I think that using .__annotations__ = ... and .__type_params__ = ... can solve this. However, __kwdefaults__ is different, because it comes in pair with __defaults__ which is already present.
Activity
pythongh-112640: Add `kwdefaults` parameter to `types.FunctionType.__…
Gobot1234 commentedon Dec 3, 2023
Should it also have type_params?
sobolevn commentedon Dec 3, 2023
I don't think that setting
__annotations__and__type_params__is common enough.I think that using
.__annotations__ = ...and.__type_params__ = ...can solve this. However,__kwdefaults__is different, because it comes in pair with__defaults__which is already present.gh-112640: Add `kwdefaults` parameter to `types.FunctionType.__new__` (…
pythongh-112640: Add `kwdefaults` parameter to `types.FunctionType.__…
pythongh-112640: Add `kwdefaults` parameter to `types.FunctionType.__…
pythongh-112640: Add `kwdefaults` parameter to `types.FunctionType.__…
fix(rgb_dispatch): guard types.FunctionType.__new__ `kwdefaults` arg …