Skip to content

Commit 270a6bf

Browse files
Update Lib/typing.py
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent d712cb3 commit 270a6bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2377,7 +2377,7 @@ def get_type_hints(obj, globalns=None, localns=None, include_extras=False,
23772377
*, format=None):
23782378
"""Return type hints for an object.
23792379
2380-
This is often the same as obj.__annotations__ and annotationlib.get_annotations(obj),
2380+
This is often the same as annotationlib.get_annotations(obj) or obj.__annotations__,
23812381
but it handles forward references encoded as string literals and recursively replaces all
23822382
'Annotated[T, ...]' with 'T' (unless 'include_extras=True').
23832383

0 commit comments

Comments
 (0)