Searched refs:asdict (Results 1 – 8 of 8) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_dataclasses.py | 1345 asdict(obj) 1381 self.assertEqual(asdict(c), {'x': 1, 'y': 2}) 1382 self.assertEqual(asdict(c), asdict(c)) 1383 self.assertIsNot(asdict(c), asdict(c)) 1385 self.assertEqual(asdict(c), {'x': 42, 'y': 2}) 1386 self.assertIs(type(asdict(c)), dict) 1395 asdict(C) 1397 asdict(int) 1406 d = asdict(c) 1410 d = asdict(c) [all …]
|
/external/rust/crates/grpcio-sys/grpc/tools/distrib/python/grpc_prefixed/ |
D | generate.py | 79 f.write(template.render(dataclasses.asdict(meta)))
|
/external/mesa3d/bin/pick/ |
D | core.py | 125 d: typing.Dict[str, typing.Any] = attr.asdict(self)
|
/external/fonttools/Lib/fontTools/designspaceLib/ |
D | __init__.py | 65 def asdict(self): member in AsDictMixin 71 value = value.asdict() 74 v.asdict() if hasattr(v, "asdict") else v for v in value
|
/external/python/cpython3/Doc/library/ |
D | dataclasses.rst | 290 .. function:: asdict(instance, *, dict_factory=dict) 307 assert asdict(p) == {'x': 10, 'y': 20} 310 assert asdict(c) == {'mylist': [{'x': 0, 'y': 0}, {'x': 10, 'y': 4}]}
|
/external/python/cpython3/Lib/ |
D | dataclasses.py | 1054 def asdict(obj, *, dict_factory=dict): function
|
/external/fonttools/Lib/fontTools/varLib/ |
D | __init__.py | 757 log.info("Axes:\n%s", pformat([axis.asdict() for axis in axes.values()]))
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.8.0a1.rst | 3246 dataclasses.asdict() and .astuple() now handle namedtuples correctly.
|