Searched refs:include_extras (Results 1 – 5 of 5) sorted by relevance
/third_party/python/Lib/ |
D | typing.py | 1751 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/ |
D | typing.rst | 933 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/ |
D | test_typing.py | 3174 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/ |
D | 3.9.0a4.rst | 497 Add :data:`typing.Annotated` and ``include_extras`` parameter to
|
/third_party/python/Doc/whatsnew/ |
D | 3.9.rst | 701 types with context-specific metadata and new ``include_extras`` parameter to
|