-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
stubs: false negativeType checkers do not report an error, but shouldType checkers do not report an error, but should
Description
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 = NoneThe two fields kwonlydefaults and defaults need to be Optional[]. This seems to be true for Python 3.4+:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
stubs: false negativeType checkers do not report an error, but shouldType checkers do not report an error, but should