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

Improve Predicate creation interface #8

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Improve Predicate creation interface #8

merged 1 commit into from
Nov 16, 2023

Conversation

cevian
Copy link
Collaborator

@cevian cevian commented Nov 16, 2023

Previously Predicates had to be created from tuples:

Predicates(("key", "==", "val))

But, as you can see above the single-predicate case is weird because of the extra paranthesis. This change allows for:

Predicates("key", "==", "val)

That is, for the single-predicate case it accepts 3 arguments instead of a tuple.

Previously Predicates had to be created from tuples:

Predicates(("key", "==", "val))

But, as you can see above the single-predicate case is weird
because of the extra paranthesis. This change allows for:

Predicates("key", "==", "val)

That is, for the single-predicate case it accepts 3 arguments instead
of a tuple.
@cevian cevian requested a review from jgpruitt November 16, 2023 13:55
Copy link
Collaborator

@jgpruitt jgpruitt left a comment

Choose a reason for hiding this comment

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

LGTM

@cevian cevian merged commit 443961b into main Nov 16, 2023
3 checks passed
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