Searched refs:TypedDict (Results 1 – 16 of 16) sorted by relevance
/third_party/python/Lib/test/ |
D | _typed_dict_helper.py | 13 from typing import Optional, TypedDict 17 class Foo(TypedDict):
|
D | test_typing.py | 23 from typing import NamedTuple, TypedDict 3016 Label = TypedDict('Label', [('label', str)]) 3018 class Point2D(TypedDict): 3027 class Options(TypedDict, total=False): 4142 Emp = TypedDict('Emp', {'name': str, 'id': int}) 4157 Emp = TypedDict('Emp', name=str, id=int) 4172 …TD = TypedDict("TD", cls=type, self=object, typename=str, _typename=int, fields=list, _fields=dict) 4185 TypedDict.__new__() 4187 TypedDict() 4189 TypedDict('Emp', [('name', str)], None) [all …]
|
D | test_types.py | 856 class Point2D(typing.TypedDict):
|
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/packaging/ |
D | metadata.py | 25 from typing import Literal, TypedDict 28 from typing_extensions import Literal, TypedDict 31 from typing_extensions import Literal, TypedDict 38 class TypedDict: class 83 class RawMetadata(TypedDict, total=False):
|
/third_party/python/Doc/library/ |
D | typing.rst | 55 * :pep:`589`: TypedDict: Type Hints for Dictionaries with a Fixed Set of Keys 56 *Introducing* :class:`TypedDict` 1366 .. class:: TypedDict(dict) 1371 ``TypedDict`` declares a dictionary type that expects all of its 1377 class Point2D(TypedDict): 1391 support :pep:`526`, ``TypedDict`` supports two additional equivalent 1394 Point2D = TypedDict('Point2D', x=int, y=int, label=str) 1395 Point2D = TypedDict('Point2D', {'x': int, 'y': int, 'label': str}) 1397 By default, all keys must be present in a ``TypedDict``. It is possible to 1401 class Point2D(TypedDict, total=False): [all …]
|
/third_party/mesa3d/bin/pick/ |
D | core.py | 38 class CommitDict(typing_extensions.TypedDict):
|
/third_party/python/Misc/NEWS.d/ |
D | 3.9.0a4.rst | 341 Fixed TypedDict totality check for inherited keys. 643 Updated documentation of ``total`` flag of ``TypedDict``.
|
D | 3.10.0rc1.rst | 378 Fixes ``TypedDict`` to work with ``typing.get_type_hints()`` and postponed
|
D | 3.10.0a4.rst | 653 :class:`typing.TypedDict` types created using the alternative call-style
|
D | 3.9.0a2.rst | 530 :class:`typing.TypedDict` subclasses now track which keys are optional using
|
D | 3.8.0b1.rst | 646 PEP 589: Add ``TypedDict`` to the ``typing`` module.
|
D | 3.10.0a1.rst | 1218 Add is_typeddict function to typing.py to check if a type is a TypedDict
|
D | 3.9.0a1.rst | 1562 Constructors of :class:`~typing.NamedTuple` and :class:`~typing.TypedDict`
|
/third_party/python/Lib/ |
D | typing.py | 2368 def TypedDict(typename, fields=None, /, *, total=True, **kwargs): function 2426 TypedDict.__mro_entries__ = lambda bases: (_TypedDict,)
|
/third_party/python/Doc/whatsnew/ |
D | 3.8.rst | 1313 :class:`typing.TypedDict`. 1314 TypedDict uses only string keys. By default, every key is required 1317 class Location(TypedDict, total=False):
|
D | 3.10.rst | 1448 is a :class:`typing.TypedDict`.
|