Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix support of var-positional parameter in Argument Clinic #122688

Copy link
Copy link
Open
@serhiy-storchaka

Description

@serhiy-storchaka
Issue body actions

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

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.