summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/operators.py
diff options
context:
space:
mode:
authorJustin Crown <justincrown1@gmail.com>2022-06-04 16:10:38 -0400
committerGitHub <noreply@github.com>2022-06-04 22:10:38 +0200
commit1508aed47261fe17180aa12fb312aebb0dd3c615 (patch)
tree26fabee0731926701dce39dc19e15c2cf5775f46 /lib/sqlalchemy/sql/operators.py
parentcdafd5bb865e867660238b61e727d33ef6f42b37 (diff)
downloadsqlalchemy-1508aed47261fe17180aa12fb312aebb0dd3c615.tar.gz
Docs Update - Add **kwargs to CaseInsensitiveComparator docs (#8063)
* Add **kwargs to CaseInsensitiveComparator docs * add kwargs to other operate examples Change-Id: I70a1e68bca27c2355ad3b7c5bbc538027f112bd9 * missed one entry Change-Id: Ieb4a18ab6d96e588e9ec7672cfa65fe2fd8301e5 Co-authored-by: Federico Caselli <cfederico87@gmail.com>
Diffstat (limited to 'lib/sqlalchemy/sql/operators.py')
-rw-r--r--lib/sqlalchemy/sql/operators.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py
index 593454432..2b888769a 100644
--- a/lib/sqlalchemy/sql/operators.py
+++ b/lib/sqlalchemy/sql/operators.py
@@ -320,8 +320,8 @@ class Operators:
side::
class MyComparator(ColumnOperators):
- def operate(self, op, other):
- return op(func.lower(self), func.lower(other))
+ def operate(self, op, other, **kwargs):
+ return op(func.lower(self), func.lower(other), **kwargs)
:param op: Operator callable.
:param \*other: the 'other' side of the operation. Will