summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-07-30 21:48:26 +0300
committerGitHub <noreply@github.com>2022-07-30 20:48:26 +0200
commit5de71c6302d01d1f304e75aa9e8e5e1bb7538d23 (patch)
tree6dbe130a71709e9914f345826a61e4ed3318ac8a /lib/sqlalchemy/ext
parentb86112fd85c7810424308d3864a67462fbc9288c (diff)
downloadsqlalchemy-5de71c6302d01d1f304e75aa9e8e5e1bb7538d23.tar.gz
Remove all `__nonzero__` methods (#8308)
Diffstat (limited to 'lib/sqlalchemy/ext')
-rw-r--r--lib/sqlalchemy/ext/associationproxy.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/sqlalchemy/ext/associationproxy.py b/lib/sqlalchemy/ext/associationproxy.py
index 7db95eac9..f238f4f8a 100644
--- a/lib/sqlalchemy/ext/associationproxy.py
+++ b/lib/sqlalchemy/ext/associationproxy.py
@@ -1316,8 +1316,6 @@ class _AssociationCollection(Generic[_IT]):
def __bool__(self) -> bool:
return bool(self.col)
- __nonzero__ = __bool__
-
def __getstate__(self) -> Any:
return {"parent": self.parent, "lazy_collection": self.lazy_collection}
@@ -1749,8 +1747,6 @@ class _AssociationSet(_AssociationSingleItem[_T], MutableSet[_T]):
else:
return False
- __nonzero__ = __bool__
-
def __contains__(self, __o: object) -> bool:
for member in self.col:
if self._get(member) == __o: