Skip to content

Commit

Permalink
gh-100673: Removed erroneous note in the get_type_hints docs (#100701)
Browse files Browse the repository at this point in the history
Removed erroneous note in the get_type_hints docs

typing.get_type_hints still includes base class type hints.
  • Loading branch information
FrozenBob committed Jan 7, 2023
1 parent 7116030 commit deaf090
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Doc/library/typing.rst
Expand Up @@ -2777,10 +2777,6 @@ Introspection helpers
.. versionchanged:: 3.9
Added ``include_extras`` parameter as part of :pep:`593`.

.. versionchanged:: 3.10
Calling ``get_type_hints()`` on a class no longer returns the annotations
of its base classes.

.. versionchanged:: 3.11
Previously, ``Optional[t]`` was added for function and method annotations
if a default value equal to ``None`` was set.
Expand Down

0 comments on commit deaf090

Please sign in to comment.