Skip to content

Conversation

@sandole
Copy link

@sandolesandole commented Dec 31, 2025

Summary

  • Fixed incorrect documentation for typing.Concatenate that claimed it is only valid as the first argument to Callable
  • Updated to reflect that Concatenate can also be used when instantiating user-defined generic classes with ParamSpec parameters, as specified in PEP 612

Test plan

  • Documentation change only, no code changes
  • Verified RST syntax is correct

Fixes#142965


📚 Documentation preview 📚: https://cpython-previews--143316.org.readthedocs.build/

…ases The documentation previously stated that Concatenate is only valid when used as the first argument to Callable, but according to PEP 612, it can also be used when instantiating user-defined generic classes with ParamSpec parameters.
@python-cla-bot
Copy link

python-cla-botbot commented Jan 1, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

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

Labels

awaiting reviewdocsDocumentation in the Doc dirskip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Incorrect docs for typing.Concatenate

1 participant

@sandole