From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 31 Jul 2025 04:07:44 +0000 (+0200) Subject: [3.14] gh-119180: Refer to `annotationlib.get_annotations()` in `typing.get_type_hint... X-Git-Tag: v3.14.0rc2~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=42b58cfa4216e4d53737a9d61a93b3be4f9beb91;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-119180: Refer to `annotationlib.get_annotations()` in `typing.get_type_hints()` documentation (GH-137247) (#137263) gh-119180: Refer to `annotationlib.get_annotations()` in `typing.get_type_hints()` documentation (GH-137247) (cherry picked from commit 5e2f0b976a762dd0efe1cca4c7b5aaa2ed809578) Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com> --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 69df09c77959..16013763dae2 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::