PEP 696: Use list for ParamSpec default [Fix] (#3133)
This commit is contained in:
parent
b9ca714a43
commit
c10a1165af
|
@ -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]): ...
|
||||
|
||||
|
|
Loading…
Reference in New Issue