Skip to content

Commit 6091ccb

Browse files
authored
Removed erroneous note in the get_type_hints docs
typing.get_type_hints still includes base class type hints.
1 parent 9dee973 commit 6091ccb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Doc/library/typing.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2777,10 +2777,6 @@ Introspection helpers
27772777
.. versionchanged:: 3.9
27782778
Added ``include_extras`` parameter as part of :pep:`593`.
27792779

2780-
.. versionchanged:: 3.10
2781-
Calling ``get_type_hints()`` on a class no longer returns the annotations
2782-
of its base classes.
2783-
27842780
.. versionchanged:: 3.11
27852781
Previously, ``Optional[t]`` was added for function and method annotations
27862782
if a default value equal to ``None`` was set.

0 commit comments

Comments
 (0)