Skip to content

Commit a3e2407

Browse files
gh-100673: Removed erroneous note in the get_type_hints docs (GH-100701)
Removed erroneous note in the get_type_hints docs typing.get_type_hints still includes base class type hints. (cherry picked from commit deaf090) Co-authored-by: FrozenBob <[email protected]>
1 parent 72263f2 commit a3e2407

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
@@ -2767,10 +2767,6 @@ Introspection helpers
27672767
.. versionchanged:: 3.9
27682768
Added ``include_extras`` parameter as part of :pep:`593`.
27692769

2770-
.. versionchanged:: 3.10
2771-
Calling ``get_type_hints()`` on a class no longer returns the annotations
2772-
of its base classes.
2773-
27742770
.. versionchanged:: 3.11
27752771
Previously, ``Optional[t]`` was added for function and method annotations
27762772
if a default value equal to ``None`` was set.

0 commit comments

Comments
 (0)