Skip to content

Conversation

@Daraan
Copy link
Contributor

@Daraan Daraan commented Jan 28, 2026

As @JelleZijlstra noted here the current notion of

The Callable form provides no way to specify [...] variadic parameters [...]

is not correct as we can express variadic positional parameters with an unpacked tuple, e.g. Callable[[*tuple[int, ...]], str].
This PR adds clarification for this case.

I've removed the notion about variadics completely in that paragraph, an alternative would be

no way to specify keyword-only parameters, variadic keyword-only parameters, or ..."

which feels redundant. Feel free to share other suggestions

Resolves: #2162

@carljm carljm requested a review from JelleZijlstra January 28, 2026 23:58
@hauntsaninja hauntsaninja merged commit 444e43e into python:main Jan 29, 2026
4 checks passed
@Daraan Daraan deleted the clarify-pos-varidic branch January 29, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Callable allows variadic args

4 participants