Home
last modified time | relevance | path

Searched refs:dataclasses (Results 1 – 25 of 54) sorted by relevance

123

/third_party/python/Lib/test/
Ddataclass_module_1.py7 import dataclasses
13 T_IV2 = dataclasses.InitVar[int]
14 T_IV3 = dataclasses.InitVar
16 @dataclasses.dataclass
25 @dataclasses.dataclass
27 T_IV4 = dataclasses.InitVar
28 iv0: dataclasses.InitVar[int]
29 iv1: dataclasses.InitVar
Ddataclass_module_1_str.py7 import dataclasses
13 T_IV2 = dataclasses.InitVar[int]
14 T_IV3 = dataclasses.InitVar
16 @dataclasses.dataclass
25 @dataclasses.dataclass
27 T_IV4 = dataclasses.InitVar
28 iv0: dataclasses.InitVar[int]
29 iv1: dataclasses.InitVar
Ddataclass_textanno.py3 import dataclasses
10 @dataclasses.dataclass
Dtest_pprint.py4 import dataclasses
70 @dataclasses.dataclass
75 field4: int = dataclasses.field(default=1, repr=False)
77 @dataclasses.dataclass
83 @dataclasses.dataclass(repr=False)
87 @dataclasses.dataclass
92 @dataclasses.dataclass
97 @dataclasses.dataclass
502 dc = dataclasses.make_dataclass("MyDataclass", ())()
Ddataclass_module_2.py7 from dataclasses import dataclass, InitVar
Ddataclass_module_2_str.py7 from dataclasses import dataclass, InitVar
/third_party/python/Lib/
Ddataclasses.py654 def _is_initvar(a_type, dataclasses): argument
657 return (a_type is dataclasses.InitVar
658 or type(a_type) is dataclasses.InitVar)
660 def _is_kw_only(a_type, dataclasses): argument
661 return a_type is dataclasses.KW_ONLY
776 dataclasses = sys.modules[__name__]
777 if (_is_initvar(a_type, dataclasses)
779 and _is_type(f.type, cls, dataclasses, dataclasses.InitVar,
940 dataclasses = sys.modules[__name__]
943 if (_is_kw_only(type, dataclasses)
[all …]
/third_party/grpc/tools/distrib/python/grpc_prefixed/
Dgenerate.py22 import dataclasses
44 @dataclasses.dataclass
79 f.write(template.render(dataclasses.asdict(meta)))
/third_party/python/Tools/scripts/
Dstable_abi.py12 import dataclasses
60 @dataclasses.dataclass
65 contents: dict = dataclasses.field(default_factory=dict)
112 @dataclasses.dataclass
119 contents: list = dataclasses.field(default_factory=list)
/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/optimizer/
Dclean_test.py21 from dataclasses import dataclass
/third_party/python/Doc/library/
Ddataclasses.rst1 :mod:`dataclasses` --- Data Classes
4 .. module:: dataclasses
10 **Source code:** :source:`Lib/dataclasses.py`
22 from dataclasses import dataclass
178 effect on any other aspect of dataclasses. See the
326 to a dict of its fields, as ``name: value`` pairs. dataclasses, dicts,
330 Example of using :func:`asdict` on nested dataclasses::
358 to a tuple of its field values. dataclasses, dicts, lists, and
369 tuple(getattr(obj, field.name) for field in dataclasses.fields(obj))
548 if the type of a field is of type ``dataclasses.InitVar``. If a field
[all …]
Dpython.rst19 dataclasses.rst
/third_party/python/Misc/NEWS.d/
D3.7.0b5.rst297 dataclasses.make_dataclass now checks for invalid field names and duplicate
356 Change dataclasses.Fields repr to use the repr of each of its members,
367 Fix dataclasses to work if using literal string type annotations or if using
370 and InitVar ("InitVar" and "dataclasses.InitVar").
D3.10.0b1.rst745 dataclasses.make_dataclass().
993 some :mod:`dataclasses`.
1071 Add the ability to specify keyword-only fields to dataclasses. These fields
1174 :mod:`pprint` now has support for :class:`dataclasses.dataclass`. Patch by
1204 Add ``slots`` parameter to ``dataclasses.dataclass`` decorator to
1273 Fix dataclasses with ``InitVar``\s and :func:`~dataclasses.replace()`. Patch
1397 Update dataclasses documentation to express that FrozenInstanceError is
D3.10.1.rst283 Added missing kw_only parameter to dataclasses.make_dataclass().
377 Fix :func:`dataclasses.is_dataclass` for dataclasses which are subclasses of
387 Fix the repr of :data:`dataclasses.InitVar` with a type alias to the
1008 Expanded :func:`~dataclasses.astuple` and :func:`~dataclasses.asdict` docs,
D3.7.0a4.rst235 Add params to dataclasses.make_dataclasses(): init, repr, eq, order, hash,
245 Make type information optional on dataclasses.make_dataclass(). If omitted,
255 Add dataclasses.is_dataclass(obj), which returns True if obj is a dataclass
D3.7.0b3.rst180 Add 'Field' to dataclasses.__all__.
211 cannot be assigned to. Require all dataclasses in a hierarchy to be either
/third_party/skia/third_party/externals/angle2/tools/android/modularization/convenience/
Dlookup_dep.py20 import dataclasses
94 @dataclasses.dataclass(frozen=True)
/third_party/mindspore/tests/ut/python/pipeline/parse/
Dtest_for_stmt.py16 from dataclasses import dataclass
/third_party/iptables/extensions/
DgenInit.py15 from dataclasses import replace
/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/pipeline/infer/
Dinfer_test.py15 from dataclasses import dataclass
/third_party/python/Tools/unicode/
Dmakeunicodedata.py29 import dataclasses
824 for k, field in enumerate(dataclasses.fields(UcdRecord)):
953 @dataclasses.dataclass
1020 field = dataclasses.astuple(s)[:15]
/third_party/mindspore/tests/ut/python/ir/
Dtest_dtype.py16 from dataclasses import dataclass
/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/pipeline/parse/
Dparser_test.py22 from dataclasses import dataclass
/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/optimizer/ad/
Dad_test.py15 from dataclasses import dataclass

123