Home
last modified time | relevance | path

Searched refs:include_extras (Results 1 – 5 of 5) sorted by relevance

/third_party/python/Lib/
Dtyping.py1751 def get_type_hints(obj, globalns=None, localns=None, include_extras=False): argument
1813 return hints if include_extras else {k: _strip_annotations(t) for k, t in hints.items()}
1853 return hints if include_extras else {k: _strip_annotations(t) for k, t in hints.items()}
/third_party/python/Doc/library/
Dtyping.rst933 Passing ``include_extras=True`` to :func:`get_type_hints` lets one
2026 .. function:: get_type_hints(obj, globalns=None, localns=None, include_extras=False)
2040 unless ``include_extras`` is set to ``True`` (see :class:`Annotated` for
2047 get_type_hints(Student, include_extras=False) == {'name': str}
2048 get_type_hints(Student, include_extras=True) == {
2060 Added ``include_extras`` parameter as part of :pep:`593`.
/third_party/python/Lib/test/
Dtest_typing.py3174 get_type_hints(foobar, globals(), locals(), include_extras=True),
3185 get_type_hints(foobar, globals(), locals(), include_extras=True),
3193 get_type_hints(barfoo, globals(), locals(), include_extras=True)['x'],
3201 get_type_hints(barfoo, globals(), locals(), include_extras=True)['x'],
3215 get_type_hints(barfoo3, globals(), locals(), include_extras=True)["x"],
3225 get_type_hints(barfoo4, globals(), locals(), include_extras=True),
3247 get_type_hints(MySet.__iand__, globals(), locals(), include_extras=True),
/third_party/python/Misc/NEWS.d/
D3.9.0a4.rst497 Add :data:`typing.Annotated` and ``include_extras`` parameter to
/third_party/python/Doc/whatsnew/
D3.9.rst701 types with context-specific metadata and new ``include_extras`` parameter to