We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As titled, it would be good to have a Not operation, so you can match in anything but the specified value.
Not
This could be combined with a OneOf operator, e.g. Not(OneOf(1, 2, 3))
OneOf
Not(OneOf(1, 2, 3))
The text was updated successfully, but these errors were encountered:
+1 good idea
Sorry, something went wrong.
Maybe we can make it in this way?
class Not: __slots__ = ('_value',) def __init__(self, value): self._value = value def __call__(self, value) -> bool: return self._value != value
No branches or pull requests
As titled, it would be good to have a
Not
operation, so you can match in anything but the specified value.This could be combined with a
OneOf
operator, e.g.Not(OneOf(1, 2, 3))
The text was updated successfully, but these errors were encountered: