summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Stasiak <jakub@stasiak.at>2020-02-07 01:15:12 (GMT)
committerGitHub <noreply@github.com>2020-02-07 01:15:12 (GMT)
commit38aaaaac805fa30870e2d093e52a900dddde3b34 (patch)
treeac20fc4abbcb8a51122bedd715c14b16ed539ff6
parent0d76d2bd28ac815dabae8b07240ed002ac8fce2d (diff)
downloadcpython-38aaaaac805fa30870e2d093e52a900dddde3b34.zip
cpython-38aaaaac805fa30870e2d093e52a900dddde3b34.tar.gz
cpython-38aaaaac805fa30870e2d093e52a900dddde3b34.tar.bz2
bpo-39491: Mention Annotated in get_origin() docstring (GH-18379)
I forgot to do it in https://github.com/python/cpython/pull/18260.
-rw-r--r--Lib/typing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/typing.py b/Lib/typing.py
index 5a7077c..8886b08 100644
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -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