Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.9k
Open
Description
If I write:
fromdecoratorimportFunctionMakerfm=FunctionMaker(lambdax:x)print(f'{fm.defaults=}')
then I see
fm.defaults=None
However, the stubs show:
defaults:tuple[Any, ...] |
andNone
can't be assigned totuple[Any, ...]
@donBarbos sorry for the ping, I just saw that you worked on these stubs a few months ago. Can you tell if it's accurate thatdefaults
should betuple[Any, ...] | None
?
Theinspect docs also note:
defaults is an n-tuple of default argument values corresponding to the last n positional parameters, or None if there are no such defaults defined
Metadata
Metadata
Assignees
Labels
No labels