Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ast.ParamSpec
1 parent 0ac40ac commit 7900a85Copy full SHA for 7900a85
1 file changed
Doc/library/ast.rst
@@ -1807,15 +1807,15 @@ aliases.
1807
1808
.. doctest::
1809
1810
- >>> print(ast.dump(ast.parse("type Alias[**P = (int, str)] = Callable[P, int]"), indent=4))
+ >>> print(ast.dump(ast.parse("type Alias[**P = [int, str]] = Callable[P, int]"), indent=4))
1811
Module(
1812
body=[
1813
TypeAlias(
1814
name=Name(id='Alias', ctx=Store()),
1815
type_params=[
1816
ParamSpec(
1817
name='P',
1818
- default_value=Tuple(
+ default_value=List(
1819
elts=[
1820
Name(id='int', ctx=Load()),
1821
Name(id='str', ctx=Load())],
0 commit comments