happy-kitchen-89482
08/09/2019, 5:34 PMdatatype
? Would that be hard to do?aloof-angle-91616
08/09/2019, 5:34 PMwitty-crayon-22786
08/09/2019, 5:35 PMeq
, but using it as an implementation detail might work.aloof-angle-91616
08/09/2019, 5:36 PMDatatypeMixin
and ChoicesMixin
, to decouple the extended functionality we're looking for from the specific backend implementationhappy-kitchen-89482
08/09/2019, 5:37 PMfrozen=True
witty-crayon-22786
08/09/2019, 6:34 PMnamedtuple
to extending "dataclass")hundreds-father-404
08/09/2019, 6:45 PMwitty-crayon-22786
08/09/2019, 6:46 PMhundreds-father-404
08/09/2019, 6:46 PMhappy-kitchen-89482
08/09/2019, 6:48 PMdataclass
is less of a win IMO, because now the code needs to import from Pants againaloof-angle-91616
08/09/2019, 6:48 PMdatatype
or dataclass
. the surrounding python code should only need a two-way adapter to its own objectswitty-crayon-22786
08/09/2019, 7:00 PMaloof-angle-91616
08/09/2019, 7:00 PM