-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Open
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixestopic-argument-clinic
Description
Currently Argument Clinic with a var-positional parameter is only used in few functions (print()
, the TypeVar
constructor (see #118814) and several set
methods), so this is not well tested.
There are several bugs here:
- Keyword-only parameters after the var-positional parameter are marked as positional-or-keyword parameters.
- The number of required arguments for keyword-only parameters was calculated incorrectly.
- Some invalid combination of the var-positional parameter with
/
,*
and deprecation markers are not forbidden or produce unrelated errors.
Linked PRs
Metadata
Metadata
Assignees
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixestopic-argument-clinic