Skip to content

Commit

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

Removed erroneous note in the get_type_hints docs

typing.get_type_hints still includes base class type hints.
  • Loading branch information
FrozenBob authored 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
Original file line number Diff line number Diff line change
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.