mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Add various missing generic arguments (#7702)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user