Skip to content

Callable allows variadic args #2162

Closed

Description

@JelleZijlstra

The spec claims "The Callable form provides no way to specify keyword-only parameters, variadic parameters, or default argument values."

In fact, PEP-646 syntax allows spelling a Callable type with variadic positional arguments, as specified here. We should edit the spec to clarify this.

Activity

  1. added
    topic: typing spec
    on Jan 28, 2026
  2. JelleZijlstra commented on Jan 29, 2026

    @JelleZijlstra
    MemberAuthor

    Fixed by #2164

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: typing spec

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions