Skip to content

Commit ced96d1

Browse files
committed
Refine more types
1 parent 680569f commit ced96d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/sqlalchemy/sql/elements.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ def _compile_w_cache(
696696

697697
return compiled_sql, extracted_params, cache_hit
698698

699-
def __invert__(self) -> ClauseElement:
699+
def __invert__(self) -> Union[operators.Operators, ClauseElement]:
700700
# undocumented element currently used by the ORM for
701701
# relationship.contains()
702702
if hasattr(self, "negation_clause"):
@@ -3936,7 +3936,7 @@ class GroupedElement(DQLDMLClauseElement):
39363936

39373937
def self_group(
39383938
self, against: Optional[OperatorType] = None
3939-
) -> GroupedElement:
3939+
) -> ClauseElement:
39403940
return self
39413941

39423942
def _ungroup(self) -> ClauseElement:

0 commit comments

Comments
 (0)