Skip to content

Commit c7a2f07

Browse files
[Docs] Add missing note about Required/NotRequired in get_type_hints()
1 parent f191db2 commit c7a2f07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/typing.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3340,7 +3340,8 @@ Introspection helpers
33403340
``__annotations__`` dictionaries. Annotations on classes appearing
33413341
earlier in the :term:`method resolution order` always take precedence over
33423342
annotations on classes appearing later in the method resolution order.
3343-
* The function recursively replaces all occurrences of ``Annotated[T, ...]``
3343+
* The function recursively replaces all occurrences of
3344+
``Annotated[T, ...]``/``Required[T]``/``NotRequired[T]``
33443345
with ``T``, unless *include_extras* is set to ``True`` (see
33453346
:class:`Annotated` for more information).
33463347

0 commit comments

Comments
 (0)