Searched refs:dataclasses (Results 1 – 25 of 54) sorted by relevance
123
/third_party/python/Lib/test/ |
D | dataclass_module_1.py | 7 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
|
D | dataclass_module_1_str.py | 7 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
|
D | dataclass_textanno.py | 3 import dataclasses 10 @dataclasses.dataclass
|
D | test_pprint.py | 4 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", ())()
|
D | dataclass_module_2.py | 7 from dataclasses import dataclass, InitVar
|
D | dataclass_module_2_str.py | 7 from dataclasses import dataclass, InitVar
|
/third_party/python/Lib/ |
D | dataclasses.py | 654 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/ |
D | generate.py | 22 import dataclasses 44 @dataclasses.dataclass 79 f.write(template.render(dataclasses.asdict(meta)))
|
/third_party/python/Tools/scripts/ |
D | stable_abi.py | 12 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/ |
D | clean_test.py | 21 from dataclasses import dataclass
|
/third_party/python/Doc/library/ |
D | dataclasses.rst | 1 :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 …]
|
D | python.rst | 19 dataclasses.rst
|
/third_party/python/Misc/NEWS.d/ |
D | 3.7.0b5.rst | 297 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").
|
D | 3.10.0b1.rst | 745 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
|
D | 3.10.1.rst | 283 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,
|
D | 3.7.0a4.rst | 235 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
|
D | 3.7.0b3.rst | 180 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/ |
D | lookup_dep.py | 20 import dataclasses 94 @dataclasses.dataclass(frozen=True)
|
/third_party/mindspore/tests/ut/python/pipeline/parse/ |
D | test_for_stmt.py | 16 from dataclasses import dataclass
|
/third_party/iptables/extensions/ |
D | genInit.py | 15 from dataclasses import replace
|
/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/pipeline/infer/ |
D | infer_test.py | 15 from dataclasses import dataclass
|
/third_party/python/Tools/unicode/ |
D | makeunicodedata.py | 29 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/ |
D | test_dtype.py | 16 from dataclasses import dataclass
|
/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/pipeline/parse/ |
D | parser_test.py | 22 from dataclasses import dataclass
|
/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/optimizer/ad/ |
D | ad_test.py | 15 from dataclasses import dataclass
|
123