Skip to content

PEP 696: Use list for ParamSpec default [Fix] - #3133

Merged
JelleZijlstra merged 1 commit into
python:mainfrom
cdce8p:cdce8p-patch-1
May 2, 2023
Merged

JelleZijlstra merged 1 commit into
python:mainfrom
cdce8p:cdce8p-patch-1

Conversation

@cdce8p

@cdce8p cdce8p commented May 2, 2023 •

Copy link
Copy Markdown
Contributor

Support for tuples for ParamSpec default values was removed in #3052.

From the PEP

``ParamSpec`` defaults are defined using the same syntax as
``TypeVar`` \ s but use a ``list`` of types or an ellipsis
literal "``...``" or another in-scope ``ParamSpec`` (see :ref:`696-scoping-rules`).

/CC: @Gobot1234


📚 Documentation preview 📚: https://pep-previews--3133.org.readthedocs.build/

@cdce8p
cdce8p requested a review from JelleZijlstra as a code owner May 2, 2023 09:26

@Gobot1234 Gobot1234 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting this

@JelleZijlstra
JelleZijlstra merged commit c10a116 into python:main May 2, 2023
@cdce8p
cdce8p deleted the cdce8p-patch-1 branch May 2, 2023 13:54
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.

3 participants