https://github.com/python/cpython/commit/5e2f0b976a762dd0efe1cca4c7b5aaa2ed809578
commit: 5e2f0b976a762dd0efe1cca4c7b5aaa2ed809578
branch: main
author: Victorien <65306057+vii...@users.noreply.github.com>
committer: JelleZijlstra <jelle.zijls...@gmail.com>
date: 2025-07-30T20:21:56-07:00
summary:

gh-119180: Refer to `annotationlib.get_annotations()` in 
`typing.get_type_hints()` documentation (#137247)

files:
M Doc/library/typing.rst

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 69df09c779592a..16013763dae210 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -3357,7 +3357,7 @@ Introspection helpers
      with ``T``, unless *include_extras* is set to ``True`` (see
      :class:`Annotated` for more information).
 
-   See also :func:`inspect.get_annotations`, a lower-level function that
+   See also :func:`annotationlib.get_annotations`, a lower-level function that
    returns annotations more directly.
 
    .. note::

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to