diff options
Diffstat (limited to 'lib/sqlalchemy/sql/operators.py')
-rw-r--r-- | lib/sqlalchemy/sql/operators.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py index 01bee62cf..8f697b27e 100644 --- a/lib/sqlalchemy/sql/operators.py +++ b/lib/sqlalchemy/sql/operators.py @@ -1013,9 +1013,9 @@ def json_path_getitem_op(a, b): raise NotImplementedError() -_commutative = set([eq, ne, add, mul]) +_commutative = {eq, ne, add, mul} -_comparison = set([eq, ne, lt, gt, ge, le, between_op, like_op]) +_comparison = {eq, ne, lt, gt, ge, le, between_op, like_op} def is_comparison(op): |