From 798fb1910fac737d81b7cf1a4f3c256af8456e58 Mon Sep 17 00:00:00 2001 From: jonathan vanasco Date: Wed, 8 Sep 2021 12:39:02 -0400 Subject: Fixes: #6930 Note in docstrings that ignored kwargs are required for API conformance. Change-Id: Icc9a8c63c0936a7c5255841ef49d10a83496763a --- lib/sqlalchemy/dialects/postgresql/json.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/sqlalchemy/dialects/postgresql/json.py') diff --git a/lib/sqlalchemy/dialects/postgresql/json.py b/lib/sqlalchemy/dialects/postgresql/json.py index 2277d3cbe..2acf177f5 100644 --- a/lib/sqlalchemy/dialects/postgresql/json.py +++ b/lib/sqlalchemy/dialects/postgresql/json.py @@ -310,6 +310,9 @@ class JSONB(JSON): def contains(self, other, **kwargs): """Boolean expression. Test if keys (or array) are a superset of/contained the keys of the argument jsonb expression. + + kwargs may be ignored by this operator but are required for API + conformance. """ return self.operate(CONTAINS, other, result_type=sqltypes.Boolean) -- cgit v1.2.1