hundreds-breakfast-49010
09/18/2019, 6:27 PMdatatype
with tuples of ("field_name", type_specifier)
, what's the best way to make some of those fields have defaults?aloof-angle-91616
09/18/2019, 6:28 PM@dataclass
lets you get pretty much everything you'd expect from datatype()
-- https://github.com/pantsbuild/pants/pull/6374/files has been lying in wait for a while, and can probably be abandonedhundreds-breakfast-49010
09/18/2019, 6:30 PMdataclass
it's fine to use anywhere in python code, right?aloof-angle-91616
09/18/2019, 6:31 PM3rdparty/python:dataclass
in any BUILD filealoof-angle-91616
09/18/2019, 6:31 PM