1
+ # pyright complains that several classes in this file
2
+ # have incompatible definitions of the "Comparator" variable in their bases,
3
+ # meaning there are several type: ignores
4
+
1
5
from typing import Any
2
6
3
7
from .base import SchemaEventTarget
@@ -24,7 +28,7 @@ class Indexable:
24
28
def __getitem__ (self , index ): ...
25
29
comparator_factory : Any
26
30
27
- class String (Concatenable , TypeEngine ):
31
+ class String (Concatenable , TypeEngine ): # type: ignore
28
32
__visit_name__ : str
29
33
RETURNS_UNICODE : Any
30
34
RETURNS_BYTES : Any
@@ -59,7 +63,7 @@ class UnicodeText(Text):
59
63
__visit_name__ : str
60
64
def __init__ (self , length : Any | None = ..., ** kwargs ) -> None : ...
61
65
62
- class Integer (_LookupExpressionAdapter , TypeEngine ):
66
+ class Integer (_LookupExpressionAdapter , TypeEngine ): # type: ignore
63
67
__visit_name__ : str
64
68
def get_dbapi_type (self , dbapi ): ...
65
69
@property
@@ -72,7 +76,7 @@ class SmallInteger(Integer):
72
76
class BigInteger (Integer ):
73
77
__visit_name__ : str
74
78
75
- class Numeric (_LookupExpressionAdapter , TypeEngine ):
79
+ class Numeric (_LookupExpressionAdapter , TypeEngine ): # type: ignore
76
80
__visit_name__ : str
77
81
precision : Any
78
82
scale : Any
@@ -97,21 +101,21 @@ class Float(Numeric):
97
101
def __init__ (self , precision : Any | None = ..., asdecimal : bool = ..., decimal_return_scale : Any | None = ...) -> None : ...
98
102
def result_processor (self , dialect , coltype ): ...
99
103
100
- class DateTime (_LookupExpressionAdapter , TypeEngine ):
104
+ class DateTime (_LookupExpressionAdapter , TypeEngine ): # type: ignore
101
105
__visit_name__ : str
102
106
timezone : Any
103
107
def __init__ (self , timezone : bool = ...) -> None : ...
104
108
def get_dbapi_type (self , dbapi ): ...
105
109
@property
106
110
def python_type (self ): ...
107
111
108
- class Date (_LookupExpressionAdapter , TypeEngine ):
112
+ class Date (_LookupExpressionAdapter , TypeEngine ): # type: ignore
109
113
__visit_name__ : str
110
114
def get_dbapi_type (self , dbapi ): ...
111
115
@property
112
116
def python_type (self ): ...
113
117
114
- class Time (_LookupExpressionAdapter , TypeEngine ):
118
+ class Time (_LookupExpressionAdapter , TypeEngine ): # type: ignore
115
119
__visit_name__ : str
116
120
timezone : Any
117
121
def __init__ (self , timezone : bool = ...) -> None : ...
@@ -199,7 +203,7 @@ class Boolean(Emulated, TypeEngine, SchemaType): # type: ignore[misc]
199
203
def bind_processor (self , dialect ): ...
200
204
def result_processor (self , dialect , coltype ): ...
201
205
202
- class _AbstractInterval (_LookupExpressionAdapter , TypeEngine ):
206
+ class _AbstractInterval (_LookupExpressionAdapter , TypeEngine ): # type: ignore
203
207
def coerce_compared_value (self , op , value ): ...
204
208
205
209
class Interval (Emulated , _AbstractInterval , TypeDecorator ): # type: ignore[misc]
@@ -216,7 +220,7 @@ class Interval(Emulated, _AbstractInterval, TypeDecorator): # type: ignore[misc
216
220
def bind_processor (self , dialect ): ...
217
221
def result_processor (self , dialect , coltype ): ...
218
222
219
- class JSON (Indexable , TypeEngine ):
223
+ class JSON (Indexable , TypeEngine ): # type: ignore
220
224
__visit_name__ : str
221
225
hashable : bool
222
226
NULL : Any
@@ -251,7 +255,7 @@ class JSON(Indexable, TypeEngine):
251
255
def bind_processor (self , dialect ): ...
252
256
def result_processor (self , dialect , coltype ): ...
253
257
254
- class ARRAY (SchemaEventTarget , Indexable , Concatenable , TypeEngine ):
258
+ class ARRAY (SchemaEventTarget , Indexable , Concatenable , TypeEngine ): # type: ignore
255
259
__visit_name__ : str
256
260
zero_indexes : bool
257
261
0 commit comments