Skip to content

Callable allows variadic args #2162

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions