Skip to content

Incorrect docs for typing.Concatenate #142965

@A5rocks

Description

@A5rocks

Documentation

https://docs.python.org/3.14/library/typing.html#typing.Concatenate says:

Concatenate is currently only valid when used as the first argument to a Callable.

but this is obviously untrue. For example, PEP 612 says:

def f(x: X[int, Concatenate[int, P_2]]) -> str: ...  # Accepted

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions