You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement a disambiguator for discriminated unions (#392)
* Implement a disambiguator for discriminated unions
Another way at "tagged unions" except backwards compatible! Also, a ton
of services provide data in this fashion. Debatably cattrs already does
something similar where you don't need to register a structure hook for
a `Literal[1, 2, 3, 4]` or whatever.
* PR feedback
* Stop supporting Python 3.7
* Remove forgotten `is_py37` reference...
* Fix ruff error + one isort error
* Don't add `isort` to CI
* Oops, don't fix ruff and then error out
0 commit comments