]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39491: Mention Annotated in get_origin() docstring (GH-18379)
authorJakub Stasiak <jakub@stasiak.at>
Fri, 7 Feb 2020 01:15:12 +0000 (02:15 +0100)
committerGitHub <noreply@github.com>
Fri, 7 Feb 2020 01:15:12 +0000 (17:15 -0800)
I forgot to do it in https://github.com/python/cpython/pull/18260.

Lib/typing.py

index 5a7077c27c42a4bbbc4aff93946e2b1ebc87c1c4..8886b08c2ec6fb3c6ffebf1eb94d43aa974dbc0f 100644 (file)
@@ -1380,8 +1380,8 @@ def _strip_annotations(t):
 def get_origin(tp):
     """Get the unsubscripted version of a type.
 
-    This supports generic types, Callable, Tuple, Union, Literal, Final and ClassVar.
-    Return None for unsupported types. Examples::
+    This supports generic types, Callable, Tuple, Union, Literal, Final, ClassVar
+    and Annotated. Return None for unsupported types. Examples::
 
         get_origin(Literal[42]) is Literal
         get_origin(int) is None