Skip to content

Commit 15b24af

Browse files
committed
Update formatting
1 parent ae99c6f commit 15b24af

File tree

1 file changed

+35
-15
lines changed

1 file changed

+35
-15
lines changed

sqlalchemy-stubs/sql/type_api.pyi

Lines changed: 35 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ from typing import Callable
44
from typing import Generic
55
from typing import Mapping
66
from typing import Optional
7-
from typing import Text
87
from typing import Tuple
98
from typing import Type
109
from typing import TypeVar
1110
from typing import Union
11+
1212
from typing_extensions import Protocol
1313

1414
from . import operators as operators
@@ -68,24 +68,30 @@ class TypeEngine(Traversible, Generic[_T]):
6868
should_evaluate_none: bool = ...
6969
def evaluates_none(self: _TE) -> _TE: ...
7070
def copy(self: _TE, **kw: Any) -> _TE: ...
71-
def compare_against_backend(
72-
self, dialect: Any, conn_type: Any
73-
) -> Any: ...
71+
def compare_against_backend(self, dialect: Any, conn_type: Any) -> Any: ...
7472
def copy_value(self, value: _T) -> _T: ...
75-
def literal_processor(self, dialect: Any) -> Optional[_LiteralProcessor[_T]]: ...
73+
def literal_processor(
74+
self, dialect: Any
75+
) -> Optional[_LiteralProcessor[_T]]: ...
7676
def bind_processor(self, dialect: Any) -> Optional[_BindProcessor[_T]]: ...
77-
def result_processor(self, dialect: Any, coltype: Any) -> Optional[_ResultProcessor[_T]]: ...
77+
def result_processor(
78+
self, dialect: Any, coltype: Any
79+
) -> Optional[_ResultProcessor[_T]]: ...
7880
def column_expression(self, colexpr: Any) -> Any: ...
7981
def bind_expression(self, bindvalue: Any) -> Any: ...
8082
def compare_values(self, x: Any, y: Any) -> bool: ...
8183
def get_dbapi_type(self, dbapi: Any) -> Any: ...
8284
@property
8385
def python_type(self) -> Type[_T]: ...
84-
def with_variant(self, type_: Type[TypeEngine[_U]], dialect_name: str) -> Variant[_U]: ...
86+
def with_variant(
87+
self, type_: Type[TypeEngine[_U]], dialect_name: str
88+
) -> Variant[_U]: ...
8589
def as_generic(self, allow_nulltype: bool = ...) -> TypeEngine[Any]: ...
8690
def dialect_impl(self, dialect: Any) -> Type[Any]: ...
8791
def adapt(self, __cls: Type[_U], **kw: Any) -> _U: ...
88-
def coerce_compared_value(self, op: Any, value: Any) -> TypeEngine[Any]: ...
92+
def coerce_compared_value(
93+
self, op: Any, value: Any
94+
) -> TypeEngine[Any]: ...
8995
def compile(self, dialect: Optional[Any] = ...) -> Any: ...
9096

9197
class VisitableCheckKWArg(util.EnsureKWArgType, TraversibleType): ...
@@ -103,7 +109,9 @@ class NativeForEmulated:
103109
@classmethod
104110
def adapt_native_to_emulated(cls, impl: Any, **kw: Any) -> Any: ...
105111
@classmethod
106-
def adapt_emulated_to_native(cls: Type[_NFE], impl: Any, **kw: Any) -> _NFE: ...
112+
def adapt_emulated_to_native(
113+
cls: Type[_NFE], impl: Any, **kw: Any
114+
) -> _NFE: ...
107115

108116
class TypeDecorator(SchemaEventTarget, TypeEngine[_T]):
109117
__visit_name__: str = ...
@@ -118,12 +126,18 @@ class TypeDecorator(SchemaEventTarget, TypeEngine[_T]):
118126
def type_engine(self, dialect: Any) -> TypeEngine[Any]: ...
119127
def load_dialect_impl(self, dialect: Any) -> TypeEngine[Any]: ...
120128
def __getattr__(self, key: Any) -> Any: ...
121-
def process_literal_param(self, value: Optional[_T], dialect: Any) -> str: ...
129+
def process_literal_param(
130+
self, value: Optional[_T], dialect: Any
131+
) -> str: ...
122132
def process_bind_param(self, value: Optional[_T], dialect: Any) -> Any: ...
123-
def process_result_value(self, value: Any, dialect: Any) -> Optional[_T]: ...
133+
def process_result_value(
134+
self, value: Any, dialect: Any
135+
) -> Optional[_T]: ...
124136
def literal_processor(self, dialect: Any) -> _LiteralProcessor[_T]: ...
125137
def bind_processor(self, dialect: Any) -> _BindProcessor[_T]: ...
126-
def result_processor(self, dialect: Any, coltype: Any) -> _ResultProcessor[_T]: ...
138+
def result_processor(
139+
self, dialect: Any, coltype: Any
140+
) -> _ResultProcessor[_T]: ...
127141
def bind_expression(self, bindparam: Any) -> Any: ...
128142
def column_expression(self, column: Any) -> Any: ...
129143
def coerce_compared_value(self, op: Any, value: Any) -> Any: ...
@@ -136,10 +150,16 @@ class TypeDecorator(SchemaEventTarget, TypeEngine[_T]):
136150
class Variant(TypeDecorator[_T]):
137151
impl: TypeEngine[Any] = ...
138152
mapping: Mapping[str, TypeEngine[Any]] = ...
139-
def __init__(self, base: Any, mapping: Mapping[str, TypeEngine[Any]]) -> None: ...
140-
def coerce_compared_value(self: _VT, operator: Any, value: Any) -> Union[_VT, TypeEngine[Any]]: ...
153+
def __init__(
154+
self, base: Any, mapping: Mapping[str, TypeEngine[Any]]
155+
) -> None: ...
156+
def coerce_compared_value(
157+
self: _VT, operator: Any, value: Any
158+
) -> Union[_VT, TypeEngine[Any]]: ...
141159
def load_dialect_impl(self, dialect: Any) -> TypeEngine[Any]: ...
142-
def with_variant(self, type_: Type[TypeEngine[_U]], dialect_name: str) -> Variant[_U]: ...
160+
def with_variant(
161+
self, type_: Type[TypeEngine[_U]], dialect_name: str
162+
) -> Variant[_U]: ...
143163
@property
144164
def comparator_factory(self) -> Type[Any]: ... # type: ignore[override]
145165

0 commit comments

Comments
 (0)