Skip to content
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

Add MappedUnion and Optional traits and use Optional where appropriate #838

Merged
merged 8 commits into from
Oct 25, 2022

Conversation

corranwebster
Copy link
Contributor

This overcomes a problem where replacing Trait(...) by Union(...) lost mapped trait behaviour.

Copy link
Member

@rkern rkern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

_orig_low = CArray # Union(None, Tuple)
_orig_high = CArray # Union(None, Tuple)
_orig_low = CArray # Optional(Tuple)
_orig_high = CArray # Optional(Tuple)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These comments are just dead code by now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed - thanks!

@corranwebster corranwebster merged commit c8d116c into main Oct 25, 2022
@corranwebster corranwebster deleted the enh/mapped-union-trait branch October 25, 2022 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants