|
97 | 97 | Mapping[int, Union["IncEx", bool]], |
98 | 98 | Mapping[str, Union["IncEx", bool]], |
99 | 99 | ] |
100 | | -SaType: TypeAlias = Union[TypeEngine[Any], Type[TypeEngine[Any]], SchemaEventTarget] |
| 100 | +SaTypeOrInstance: TypeAlias = Union[TypeEngine[Any], Type[TypeEngine[Any]], SchemaEventTarget] |
101 | 101 | OnDeleteType = Literal["CASCADE", "SET NULL", "RESTRICT"] |
102 | 102 |
|
103 | 103 |
|
@@ -247,7 +247,7 @@ def Field( |
247 | 247 | unique: Union[bool, UndefinedType] = Undefined, |
248 | 248 | nullable: Union[bool, UndefinedType] = Undefined, |
249 | 249 | index: Union[bool, UndefinedType] = Undefined, |
250 | | - sa_type: Union[SaType, UndefinedType] = Undefined, |
| 250 | + sa_type: Union[SaTypeOrInstance, UndefinedType] = Undefined, |
251 | 251 | sa_column_args: Union[Sequence[Any], UndefinedType] = Undefined, |
252 | 252 | sa_column_kwargs: Union[Mapping[str, Any], UndefinedType] = Undefined, |
253 | 253 | schema_extra: Optional[Dict[str, Any]] = None, |
@@ -293,7 +293,7 @@ def Field( |
293 | 293 | unique: Union[bool, UndefinedType] = Undefined, |
294 | 294 | nullable: Union[bool, UndefinedType] = Undefined, |
295 | 295 | index: Union[bool, UndefinedType] = Undefined, |
296 | | - sa_type: Union[SaType, UndefinedType] = Undefined, |
| 296 | + sa_type: Union[SaTypeOrInstance, UndefinedType] = Undefined, |
297 | 297 | sa_column_args: Union[Sequence[Any], UndefinedType] = Undefined, |
298 | 298 | sa_column_kwargs: Union[Mapping[str, Any], UndefinedType] = Undefined, |
299 | 299 | schema_extra: Optional[Dict[str, Any]] = None, |
@@ -382,7 +382,7 @@ def Field( |
382 | 382 | unique: Union[bool, UndefinedType] = Undefined, |
383 | 383 | nullable: Union[bool, UndefinedType] = Undefined, |
384 | 384 | index: Union[bool, UndefinedType] = Undefined, |
385 | | - sa_type: Union[SaType, UndefinedType] = Undefined, |
| 385 | + sa_type: Union[SaTypeOrInstance, UndefinedType] = Undefined, |
386 | 386 | sa_column: Union[Column, UndefinedType] = Undefined, # type: ignore |
387 | 387 | sa_column_args: Union[Sequence[Any], UndefinedType] = Undefined, |
388 | 388 | sa_column_kwargs: Union[Mapping[str, Any], UndefinedType] = Undefined, |
|
0 commit comments