summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/ext')
-rw-r--r--lib/sqlalchemy/ext/associationproxy.py6
-rw-r--r--lib/sqlalchemy/ext/asyncio/scoping.py2
-rw-r--r--lib/sqlalchemy/ext/asyncio/session.py2
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/sqlalchemy/ext/associationproxy.py b/lib/sqlalchemy/ext/associationproxy.py
index 194eabb64..5ea268a2d 100644
--- a/lib/sqlalchemy/ext/associationproxy.py
+++ b/lib/sqlalchemy/ext/associationproxy.py
@@ -1176,7 +1176,7 @@ class ObjectAssociationProxyInstance(AssociationProxyInstance[_T]):
**{self.value_attr: other}
)
- def __eq__(self, obj: Any) -> ColumnElement[bool]: # type: ignore[override] # noqa E501
+ def __eq__(self, obj: Any) -> ColumnElement[bool]: # type: ignore[override] # noqa: E501
# note the has() here will fail for collections; eq_()
# is only allowed with a scalar.
if obj is None:
@@ -1187,7 +1187,7 @@ class ObjectAssociationProxyInstance(AssociationProxyInstance[_T]):
else:
return self._comparator.has(**{self.value_attr: obj})
- def __ne__(self, obj: Any) -> ColumnElement[bool]: # type: ignore[override] # noqa E501
+ def __ne__(self, obj: Any) -> ColumnElement[bool]: # type: ignore[override] # noqa: E501
# note the has() here will fail for collections; eq_()
# is only allowed with a scalar.
return self._comparator.has(
@@ -1203,7 +1203,7 @@ class ColumnAssociationProxyInstance(AssociationProxyInstance[_T]):
_target_is_object: bool = False
_is_canonical = True
- def __eq__(self, other: Any) -> ColumnElement[bool]: # type: ignore[override] # noqa E501
+ def __eq__(self, other: Any) -> ColumnElement[bool]: # type: ignore[override] # noqa: E501
# special case "is None" to check for no related row as well
expr = self._criterion_exists(
self.remote_attr.operate(operators.eq, other)
diff --git a/lib/sqlalchemy/ext/asyncio/scoping.py b/lib/sqlalchemy/ext/asyncio/scoping.py
index 46c8f0baa..8eca8c524 100644
--- a/lib/sqlalchemy/ext/asyncio/scoping.py
+++ b/lib/sqlalchemy/ext/asyncio/scoping.py
@@ -85,7 +85,7 @@ class async_scoped_session(ScopedSessionMixin):
the current scope. A function such as ``asyncio.current_task``
may be useful here.
- """ # noqa E501
+ """ # noqa: E501
self.session_factory = session_factory
self.registry = ScopedRegistry(session_factory, scopefunc)
diff --git a/lib/sqlalchemy/ext/asyncio/session.py b/lib/sqlalchemy/ext/asyncio/session.py
index 18b38ee0a..c39a8d6e0 100644
--- a/lib/sqlalchemy/ext/asyncio/session.py
+++ b/lib/sqlalchemy/ext/asyncio/session.py
@@ -503,7 +503,7 @@ class AsyncSession(ReversibleProxy):
blocking-style code, which will be translated to implicitly async calls
at the point of invoking IO on the database drivers.
- """ # noqa E501
+ """ # noqa: E501
return self.sync_session.get_bind(
mapper=mapper, clause=clause, bind=bind, **kw