loose checking if s is a pytables-acceptable expression
(s)
| 672 | |
| 673 | |
| 674 | def maybe_expression(s) -> bool: |
| 675 | """loose checking if s is a pytables-acceptable expression""" |
| 676 | if not isinstance(s, str): |
| 677 | return False |
| 678 | operations = PyTablesExprVisitor.binary_ops + PyTablesExprVisitor.unary_ops + ("=",) |
| 679 | |
| 680 | # make sure we have an op at least |
| 681 | return any(op in s for op in operations) |