From 1657312ba77cf2a8751aed195b4d246afb28b64e Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Sun, 31 Jul 2022 13:08:36 +0300 Subject: Remove `__cmp__` methods (#8313) --- lib/sqlalchemy/sql/annotation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/sql/annotation.py') diff --git a/lib/sqlalchemy/sql/annotation.py b/lib/sqlalchemy/sql/annotation.py index 61849d053..95dc1d4d4 100644 --- a/lib/sqlalchemy/sql/annotation.py +++ b/lib/sqlalchemy/sql/annotation.py @@ -257,7 +257,7 @@ class Annotated(SupportsAnnotations): """clones a SupportsAnnotations and applies an 'annotations' dictionary. Unlike regular clones, this clone also mimics __hash__() and - __cmp__() of the original element so that it takes its place + __eq__() of the original element so that it takes its place in hashed collections. A reference to the original element is maintained, for the important -- cgit v1.2.1