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

This commit is contained in:
Marc Mueller 2023-05-02 15:35:41 +02:00 committed by GitHub
parent b9ca714a43
commit c10a1165af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ literal "``...``" or another in-scope ``ParamSpec`` (see :ref:`696-scoping-rules
.. code-block:: py
DefaultP = ParamSpec("DefaultP", default=(str, int))
DefaultP = ParamSpec("DefaultP", default=[str, int])
class Foo(Generic[DefaultP]): ...