-
-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a disambiguator for discriminated unions #392
Merged
Tinche
merged 10 commits into
python-attrs:main
from
A5rocks:discriminated-union-support
Oct 2, 2023
Merged
Implement a disambiguator for discriminated unions #392
Tinche
merged 10 commits into
python-attrs:main
from
A5rocks:discriminated-union-support
Oct 2, 2023
Commits on Jul 9, 2023
-
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.
Configuration menu - View commit details
-
Copy full SHA for 1cc589f - Browse repository at this point
Copy the full SHA 1cc589fView commit details
Commits on Jul 30, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e72ee6b - Browse repository at this point
Copy the full SHA e72ee6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad3fd60 - Browse repository at this point
Copy the full SHA ad3fd60View commit details
Commits on Aug 30, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 10c0810 - Browse repository at this point
Copy the full SHA 10c0810View commit details
Commits on Sep 26, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fbda222 - Browse repository at this point
Copy the full SHA fbda222View commit details
Commits on Sep 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for bb316c5 - Browse repository at this point
Copy the full SHA bb316c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7281458 - Browse repository at this point
Copy the full SHA 7281458View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71c3198 - Browse repository at this point
Copy the full SHA 71c3198View commit details -
Configuration menu - View commit details
-
Copy full SHA for 122c719 - Browse repository at this point
Copy the full SHA 122c719View commit details -
Configuration menu - View commit details
-
Copy full SHA for 767f249 - Browse repository at this point
Copy the full SHA 767f249View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.