[Python-checkins] [3.10] gh-100673: Removed erroneous note in the get_type_hints docs (#100701) (GH-100826)
miss-islington
webhook-mailer at python.org
Sat Jan 7 15:55:54 EST 2023
https://github.com/python/cpython/commit/67e52e54bb85ed10d2e21b7e8f7337085304b299
commit: 67e52e54bb85ed10d2e21b7e8f7337085304b299
branch: 3.10
author: Alex Waygood <Alex.Waygood at Gmail.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2023-01-07T12:55:41-08:00
summary:
[3.10] gh-100673: Removed erroneous note in the get_type_hints docs (#100701) (GH-100826)
Removed erroneous note in the get_type_hints docs
typing.get_type_hints still includes base class type hints.
(cherry picked from commit deaf090699a7312cccb0637409f44de3f382389b)
Automerge-Triggered-By: GH:AlexWaygood
files:
M Doc/library/typing.rst
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index d3275209e938..d415f149027f 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -2233,10 +2233,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.
-
.. function:: get_args(tp)
.. function:: get_origin(tp)
More information about the Python-checkins
mailing list