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

Union matches: select type by number of matching fields #264

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

m-aciek
Copy link

@m-aciek m-aciek commented Oct 22, 2024

Closes #263.

Copy link

@airunderscoreland airunderscoreland left a comment

Choose a reason for hiding this comment

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

This looks like it safely solves the issue

@m-aciek
Copy link
Author

m-aciek commented Oct 23, 2024

There was an unintended bug in my code. I fixed it with 39d01b7.

Python default sorting is ascending and I wanted to get a quotient of sets. The test passed by accident.

1 {'j'}  # I was getting this element
2 {'i', 'j'}

0 set()
1 {'j'}  # after 39d01b7 (fix) I'm getting this (same element, but the logic is fixed)

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.

When parsing with Union Optional values are swallowing the input
2 participants