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
This came from a real-world use case: a user wants to define a validation function for something that is either an int or a list of ints.
from mini_lambda import Isinstance my_expr = Isinstance(int) | (Isinstance(list) & ...) is_valid = my_expr.as_function() assert is_valid(5) assert not is_valid('f') assert is_valid([1, 2]) assert not is_valid([1, 'f'])
What should we suggest instead of ... above ?
...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This came from a real-world use case: a user wants to define a validation function for something that is either an int or a list of ints.
What should we suggest instead of
...
above ?The text was updated successfully, but these errors were encountered: