@@ -56,9 +56,9 @@ class TypeEngine(Traversible, Generic[_T]):
56
56
self , dialect : Any , conn_type : Any
57
57
) -> Any : ...
58
58
def copy_value (self , value : _T ) -> _T : ...
59
- def literal_processor (self , dialect : Any ) -> Optional [Callable [..., Any ]]: ...
60
- def bind_processor (self , dialect : Any ) -> Optional [Callable [..., Any ]]: ...
61
- def result_processor (self , dialect : Any , coltype : Any ) -> Optional [Callable [..., Any ]]: ...
59
+ def literal_processor (self , dialect : Any ) -> Optional [Callable [[ Optional [ _T ]], str ]]: ...
60
+ def bind_processor (self , dialect : Any ) -> Optional [Callable [[ Optional [ _T ]], Optional [ Any ] ]]: ...
61
+ def result_processor (self , dialect : Any , coltype : Any ) -> Optional [Callable [[ Optional [ Any ]], Optional [ _T ] ]]: ...
62
62
def column_expression (self , colexpr : Any ) -> Any : ...
63
63
def bind_expression (self , bindvalue : Any ) -> Any : ...
64
64
def compare_values (self , x : Any , y : Any ) -> bool : ...
@@ -102,11 +102,11 @@ class TypeDecorator(SchemaEventTarget, TypeEngine[_T]):
102
102
def type_engine (self , dialect : Any ) -> TypeEngine [Any ]: ...
103
103
def load_dialect_impl (self , dialect : Any ) -> TypeEngine [Any ]: ...
104
104
def __getattr__ (self , key : Any ) -> Any : ...
105
- def process_literal_param (self , value : Any , dialect : Any ) -> Optional [ str ] : ...
106
- def process_bind_param (self , value : Any , dialect : Any ) -> Optional [ Text ] : ...
105
+ def process_literal_param (self , value : Optional [ _T ] , dialect : Any ) -> str : ...
106
+ def process_bind_param (self , value : Optional [ _T ] , dialect : Any ) -> Any : ...
107
107
def process_result_value (self , value : Any , dialect : Any ) -> Optional [_T ]: ...
108
- def literal_processor (self , dialect : Any ) -> Callable [[Optional [_T ]], Optional [ str ] ]: ...
109
- def bind_processor (self , dialect : Any ) -> Callable [[Optional [_T ]], Optional [str ]]: ...
108
+ def literal_processor (self , dialect : Any ) -> Callable [[Optional [_T ]], str ]: ...
109
+ def bind_processor (self , dialect : Any ) -> Callable [[Optional [_T ]], Optional [Any ]]: ...
110
110
def result_processor (self , dialect : Any , coltype : Any ) -> Callable [[Optional [Any ]], Optional [_T ]]: ...
111
111
def bind_expression (self , bindparam : Any ) -> Any : ...
112
112
def column_expression (self , column : Any ) -> Any : ...
@@ -118,7 +118,7 @@ class TypeDecorator(SchemaEventTarget, TypeEngine[_T]):
118
118
def sort_key_function (self ) -> Optional [_SortKeyFunction ]: ... # type: ignore[override]
119
119
120
120
class Variant (TypeDecorator [_T ]):
121
- impl : Type [ TypeEngine [Any ] ] = ...
121
+ impl : TypeEngine [Any ] = ...
122
122
mapping : Mapping [str , TypeEngine [Any ]] = ...
123
123
def __init__ (self , base : Any , mapping : Mapping [str , TypeEngine [Any ]]) -> None : ...
124
124
def coerce_compared_value (self : _VT , operator : Any , value : Any ) -> Union [_VT , TypeEngine [Any ]]: ...
0 commit comments