https://github.com/python/cpython/commit/89f4b23f9efa4919e59cc542fd44062efc9898f2 commit: 89f4b23f9efa4919e59cc542fd44062efc9898f2 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: AlexWaygood <[email protected]> date: 2024-12-15T12:35:25Z summary:
[3.13] Clarify ast docs to use a less confusing example for `ast.ParamSpec` (GH-127955) (#127959) Clarify ast docs to use a less confusing example for `ast.ParamSpec` (GH-127955) Fix typo in ast docs: ParamSpec defaults (cherry picked from commit 7900a85019457c14e8c6abac532846bc9f26760d) Co-authored-by: Steve C <[email protected]> files: M Doc/library/ast.rst diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst index bb126b790270d6..ce261abc2a347d 100644 --- a/Doc/library/ast.rst +++ b/Doc/library/ast.rst @@ -1802,7 +1802,7 @@ aliases. .. doctest:: - >>> 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)) Module( body=[ TypeAlias( @@ -1810,7 +1810,7 @@ aliases. type_params=[ ParamSpec( name='P', - default_value=Tuple( + default_value=List( elts=[ Name(id='int', ctx=Load()), Name(id='str', ctx=Load())], _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
