From: Mike Bayer Date: Sun, 11 Aug 2019 02:20:31 +0000 (-0400) Subject: - shore up TypeDecorator docs a bit to not render tons of X-Git-Tag: rel_1_3_7~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d6f9f73982e374a5e56f5440e23ec7d8602dd74;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - shore up TypeDecorator docs a bit to not render tons of comparator methods Change-Id: I8f434b18b2bd632a0db0db1376262944272d2198 (cherry picked from commit 731a20049b372ee2e0c7408519623363e22a4db4) --- diff --git a/doc/build/core/custom_types.rst b/doc/build/core/custom_types.rst index fca0ddb03e..e1ea26a9c4 100644 --- a/doc/build/core/custom_types.rst +++ b/doc/build/core/custom_types.rst @@ -66,7 +66,6 @@ to and/or from the database is required. .. autoclass:: TypeDecorator :members: - :inherited-members: TypeDecorator Recipes diff --git a/lib/sqlalchemy/sql/type_api.py b/lib/sqlalchemy/sql/type_api.py index 9e052c6b43..5f96b1aad8 100644 --- a/lib/sqlalchemy/sql/type_api.py +++ b/lib/sqlalchemy/sql/type_api.py @@ -903,6 +903,15 @@ class TypeDecorator(SchemaEventTarget, TypeEngine): """ class Comparator(TypeEngine.Comparator): + """A :class:`.TypeEngine.Comparator` that is specific to + :class:`.TypeDecorator`. + + User-defined :class:`.TypeDecorator` classes should not typically + need to modify this. + + + """ + __slots__ = () def operate(self, op, *other, **kwargs):