Skip to content

Commit cb068fd

Browse files
committed
Use Self instead of a TypeVar
1 parent e705f39 commit cb068fd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/sqlalchemy/sql/elements.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@
107107
from .selectable import FromClause
108108
from .selectable import NamedFromClause
109109
from .selectable import TextualSelect
110-
from .selectable import Select
111-
from .sqltypes import ARRAY
112110
from .sqltypes import Boolean
113111
from .sqltypes import NullType
114112
from .sqltypes import String
@@ -421,10 +419,10 @@ def _clone(self, **kw: Any) -> Self:
421419
return c
422420

423421
def _negate_in_binary(
424-
self: SelfClauseElement,
422+
self,
425423
negated_op: OperatorType,
426424
original_op: OperatorType,
427-
) -> SelfClauseElement:
425+
) -> Self:
428426
"""a hook to allow the right side of a binary expression to respond
429427
to a negation of the binary expression.
430428

0 commit comments

Comments
 (0)