Skip to content

Commit 38aaaaa

Browse files
authored
bpo-39491: Mention Annotated in get_origin() docstring (GH-18379)
I forgot to do it in #18260.
1 parent 0d76d2b commit 38aaaaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,8 +1380,8 @@ def _strip_annotations(t):
13801380
def get_origin(tp):
13811381
"""Get the unsubscripted version of a type.
13821382
1383-
This supports generic types, Callable, Tuple, Union, Literal, Final and ClassVar.
1384-
Return None for unsupported types. Examples::
1383+
This supports generic types, Callable, Tuple, Union, Literal, Final, ClassVar
1384+
and Annotated. Return None for unsupported types. Examples::
13851385
13861386
get_origin(Literal[42]) is Literal
13871387
get_origin(int) is None

0 commit comments

Comments
 (0)