We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
It seems that two fields in inspect.FullArgSpec are mis-annotated:
inspect.FullArgSpec
Looking at the implementation of getfullargspec, at the very end this happens:
getfullargspec
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+:
kwonlydefaults
defaults
Optional[]
The text was updated successfully, but these errors were encountered:
PR welcome!
Sorry, something went wrong.
fixing python#3361
0604db4
#3362 :)
fixing #3361 (#3362)
7e99848
Fixes #3361
Successfully merging a pull request may close this issue.
Hi,
It seems that two fields in
inspect.FullArgSpec
are mis-annotated:Looking at the implementation of
getfullargspec
, at the very end this happens:The two fields
kwonlydefaults
anddefaults
need to beOptional[]
. This seems to be true for Python 3.4+:The text was updated successfully, but these errors were encountered: