]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-111681: minor fix to a typing doctest (#111682) (#112037)
authorAlex Waygood <Alex.Waygood@Gmail.com>
Mon, 13 Nov 2023 14:01:17 +0000 (14:01 +0000)
committerGitHub <noreply@github.com>
Mon, 13 Nov 2023 14:01:17 +0000 (14:01 +0000)
Doc/library/typing.rst

index f00a4ce20c8a51f386dee5f03e7008a40b2c6b64..0eda01a323e4908f2ca7f6ae4493eb5dace92764 100644 (file)
@@ -1785,7 +1785,7 @@ for creating generic types.
 
    .. doctest::
 
-      >>> from typing import ParamSpec
+      >>> from typing import ParamSpec, get_origin
       >>> P = ParamSpec("P")
       >>> get_origin(P.args) is P
       True