HomePhabricator

Migrate action module to dataclasses

Description

Migrate action module to dataclasses

This lets us get rid of a lot of boilerplate constructors and eq/repr
implementations. Assertions in constructors can move into post_init.

We need a # type: ignore comment on CategoryAction because mypy gets
a bit confused by the combination of ABC and dataclasses, but it’s not
too bad.

Details

Provenance
LucasWerkmeisterAuthored on Sep 17 2021, 8:37 PM
LucasWerkmeisterPushed on Sep 18 2021, 1:00 PM
Parents
R2494:e8a95d4c04f6: Mount pip cache directory into background runner
Branches
Unknown
Tags
Unknown
ChangeId
None