From de67a5854e5630aa30bc0df70e93bd685a868770 Mon Sep 17 00:00:00 2001 From: Victorien <65306057+Viicos@users.noreply.github.com> Date: Wed, 30 Jul 2025 20:12:07 +0200 Subject: [PATCH] gh-119180: Refer to `annotationlib.get_annotations()` in `typing.get_type_hints()` documentation --- Doc/library/typing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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::