Add various missing generic arguments (#7702)

Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
Sebastian Rittau
2022-04-27 14:25:35 +02:00
committed by GitHub
parent ae09e4e866
commit 2d468966f5
9 changed files with 17 additions and 14 deletions

View File

@@ -20,7 +20,7 @@ CONTAINED_BY: _Any
OVERLAP: _Any
class ARRAY(sqltypes.ARRAY):
class Comparator(sqltypes.ARRAY.Comparator):
class Comparator(sqltypes.ARRAY.Comparator[_Any]):
def contains(self, other, **kwargs): ...
def contained_by(self, other): ...
def overlap(self, other): ...

View File

@@ -10,7 +10,7 @@ class HSTORE(sqltypes.Indexable, sqltypes.Concatenable, sqltypes.TypeEngine):
text_type: Any
def __init__(self, text_type: Any | None = ...) -> None: ...
class Comparator(sqltypes.Indexable.Comparator, sqltypes.Concatenable.Comparator):
class Comparator(sqltypes.Indexable.Comparator[Any], sqltypes.Concatenable.Comparator[Any]):
def has_key(self, other): ...
def has_all(self, other): ...
def has_any(self, other): ...

View File

@@ -3,7 +3,7 @@ from typing import Any
import sqlalchemy.types as sqltypes
class RangeOperators:
class comparator_factory(sqltypes.Concatenable.Comparator):
class comparator_factory(sqltypes.Concatenable.Comparator[Any]):
def __ne__(self, other): ...
def contains(self, other, **kw): ...
def contained_by(self, other): ...

View File

@@ -4,7 +4,7 @@ from ..sql import operators
class UnevaluatableError(Exception): ...
class _NoObject(operators.ColumnOperators):
class _NoObject(operators.ColumnOperators[Any]):
def operate(self, *arg, **kw) -> None: ...
def reverse_operate(self, *arg, **kw) -> None: ...

View File

@@ -75,7 +75,7 @@ class TypeDecorator(ExternalType, SchemaEventTarget, TypeEngine):
def __init__(self, *args, **kwargs) -> None: ...
coerce_to_is_types: Any
class Comparator(TypeEngine.Comparator):
class Comparator(TypeEngine.Comparator[Any]):
def operate(self, op, *other, **kwargs): ...
def reverse_operate(self, op, other, **kwargs): ...