https://github.com/python/cpython/commit/90843711074577719cd5bc7f866db820d9c52085 commit: 90843711074577719cd5bc7f866db820d9c52085 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: JelleZijlstra <[email protected]> date: 2025-10-20T13:23:28-07:00 summary:
[3.13] [Docs] Add missing note about Required/NotRequired/ReadOnly in get_type_hints() (GH-139565) (#140387) [Docs] Add missing note about Required/NotRequired/ReadOnly in get_type_hints() (GH-139565) (cherry picked from commit a752f58d6b628ab4fe6e4263137ec4cc244ff390) Co-authored-by: Sam Bull <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]> files: M Doc/library/typing.rst diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 05444690cd01fd..febabb5bb6d031 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -3240,7 +3240,8 @@ Introspection helpers ``__annotations__`` dictionaries. Annotations on classes appearing earlier in the :term:`method resolution order` always take precedence over annotations on classes appearing later in the method resolution order. - * The function recursively replaces all occurrences of ``Annotated[T, ...]`` + * The function recursively replaces all occurrences of + ``Annotated[T, ...]``, ``Required[T]``, ``NotRequired[T]``, and ``ReadOnly[T]`` with ``T``, unless *include_extras* is set to ``True`` (see :class:`Annotated` for more information). _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
