Searched refs:asdict (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_dataclasses.py | 1327 self.assertEqual(asdict(c), {'x': 1, 'y': 2}) 1328 self.assertEqual(asdict(c), asdict(c)) 1329 self.assertIsNot(asdict(c), asdict(c)) 1331 self.assertEqual(asdict(c), {'x': 42, 'y': 2}) 1332 self.assertIs(type(asdict(c)), dict) 1341 asdict(C) 1343 asdict(int) 1352 d = asdict(c) 1356 d = asdict(c) 1370 d = asdict(u) [all …]
|
/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 | 288 .. function:: asdict(instance, *, dict_factory=dict) 305 assert asdict(p) == {'x': 10, 'y': 20} 308 assert asdict(c) == {'mylist': [{'x': 0, 'y': 0}, {'x': 10, 'y': 4}]}
|
/external/python/cpython3/Lib/ |
D | dataclasses.py | 1023 def asdict(obj, *, dict_factory=dict): function
|
/external/fonttools/Lib/fontTools/varLib/ |
D | __init__.py | 740 log.info("Axes:\n%s", pformat([axis.asdict() for axis in axes.values()]))
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.7.1rc1.rst | 366 dataclasses.asdict() and .astuple() now handle namedtuples correctly.
|