Home
last modified time | relevance | path

Searched refs:TypedDict (Results 1 – 16 of 16) sorted by relevance

/third_party/python/Lib/test/
D_typed_dict_helper.py13 from typing import Optional, TypedDict
17 class Foo(TypedDict):
Dtest_typing.py23 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 …]
Dtest_types.py856 class Point2D(typing.TypedDict):
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/packaging/
Dmetadata.py25 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/
Dtyping.rst55 * :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/
Dcore.py38 class CommitDict(typing_extensions.TypedDict):
/third_party/python/Misc/NEWS.d/
D3.9.0a4.rst341 Fixed TypedDict totality check for inherited keys.
643 Updated documentation of ``total`` flag of ``TypedDict``.
D3.10.0rc1.rst378 Fixes ``TypedDict`` to work with ``typing.get_type_hints()`` and postponed
D3.10.0a4.rst653 :class:`typing.TypedDict` types created using the alternative call-style
D3.9.0a2.rst530 :class:`typing.TypedDict` subclasses now track which keys are optional using
D3.8.0b1.rst646 PEP 589: Add ``TypedDict`` to the ``typing`` module.
D3.10.0a1.rst1218 Add is_typeddict function to typing.py to check if a type is a TypedDict
D3.9.0a1.rst1562 Constructors of :class:`~typing.NamedTuple` and :class:`~typing.TypedDict`
/third_party/python/Lib/
Dtyping.py2368 def TypedDict(typename, fields=None, /, *, total=True, **kwargs): function
2426 TypedDict.__mro_entries__ = lambda bases: (_TypedDict,)
/third_party/python/Doc/whatsnew/
D3.8.rst1313 :class:`typing.TypedDict`.
1314 TypedDict uses only string keys. By default, every key is required
1317 class Location(TypedDict, total=False):
D3.10.rst1448 is a :class:`typing.TypedDict`.