sematic icon indicating copy to clipboard operation
sematic copied to clipboard

Move enum and dataclass registry lookups from `serialization.py` and `casting.py` to `registry.py`

Open augray opened this issue 2 years ago • 0 comments

There are a lot of checks when looking up registered functions along the lines of "if I didn't find this registered, and it's a dataclass/enum, check the key for dataclass/enum." Instead, it would be better if the registry itself had logic when looking up a type that was either a dataclass/enum if it fell back to use those keys.

augray avatar Oct 07 '22 21:10 augray