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
Signature.bind TypeErrors could be more helpful #83901
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2020-02-21.22:41:33.023>labels= ['type-feature', 'library']
title='Signature.bind TypeErrors could be more helpful'updated_at=<Date2020-02-21.22:41:33.023>user='https://github.com/RazerM'
Activity
RazerM commentedon Feb 21, 2020
Signature.bind does not tell you if a missing argument is keyword-only for example. I created the following snippet to examine the differences:
Output on current 3.9 master:
I am willing to create a PR so that the TypeError for f3 says "missing a required keyword-only argument: 'kw_only'", if this would be accepted.
Merge branch 'main' into typewatch
pythonGH-83901: Improve Signature.bind error message for missing keyw…
pythonGH-83901: Improve Signature.bind error message for missing keyw…