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
## Before this PR
<!-- Describe the problem you encountered with the current state of the world (or link to an issue) and why it's important to fix now. -->
- Comparison of Union types was broken
- No tests for enum or union types
- No way to represent Sets separate from Lists
## After this PR
This PR does a few things:
- fixes and tests #17
- adds tests for the union and enum types which had bugs before
- adds a SetType for the eventual native support for frozenset to resolvepalantir/conjure-python#27 later
<!-- Reference any existing GitHub issues, e.g. 'fixes #000' or 'relevant to #000' -->
What's happening
Given the Conjure definition:
conjure-python 3.9.0 doesn't actually enforce uniqueness of the
items
field because it generates a list:What should happen
We should codegen a python type that actually enforces uniqueness, e.g.
set
orfrozenset
: https://docs.python.org/2/library/stdtypes.html#setThe text was updated successfully, but these errors were encountered: