Hi,
It seems that two fields in inspect.FullArgSpec are mis-annotated:
Looking at the implementation of getfullargspec, at the very end this happens:
if not kwdefaults:
# compatibility with 'func.__kwdefaults__'
kwdefaults = None
if not defaults:
# compatibility with 'func.__defaults__'
defaults = None
The two fields kwonlydefaults and defaults need to be Optional[]. This seems to be true for Python 3.4+:
Hi,
It seems that two fields in
inspect.FullArgSpecare mis-annotated:Looking at the implementation of
getfullargspec, at the very end this happens:The two fields
kwonlydefaultsanddefaultsneed to beOptional[]. This seems to be true for Python 3.4+: