Home
last modified time | relevance | path

Searched refs:asdict (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_dataclasses.py1345 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/
Dgenerate.py79 f.write(template.render(dataclasses.asdict(meta)))
/external/mesa3d/bin/pick/
Dcore.py125 d: typing.Dict[str, typing.Any] = attr.asdict(self)
/external/fonttools/Lib/fontTools/designspaceLib/
D__init__.py65 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/
Ddataclasses.rst290 .. 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/
Ddataclasses.py1054 def asdict(obj, *, dict_factory=dict): function
/external/fonttools/Lib/fontTools/varLib/
D__init__.py757 log.info("Axes:\n%s", pformat([axis.asdict() for axis in axes.values()]))
/external/python/cpython3/Misc/NEWS.d/
D3.8.0a1.rst3246 dataclasses.asdict() and .astuple() now handle namedtuples correctly.