File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ def Field(
152152 foreign_key : Optional [Any ] = None ,
153153 nullable : Union [bool , UndefinedType ] = Undefined ,
154154 index : Union [bool , UndefinedType ] = Undefined ,
155- sa_column : Union [Column [ Any ] , UndefinedType ] = Undefined ,
155+ sa_column : Union [Column , UndefinedType ] = Undefined , # type: ignore
156156 sa_column_args : Union [Sequence [Any ], UndefinedType ] = Undefined ,
157157 sa_column_kwargs : Union [Mapping [str , Any ], UndefinedType ] = Undefined ,
158158 schema_extra : Optional [Dict [str , Any ]] = None ,
Original file line number Diff line number Diff line change 88from sqlalchemy .types import CHAR , TypeDecorator
99
1010
11- class AutoString (types .TypeDecorator [ types . String ]):
11+ class AutoString (types .TypeDecorator ): # type: ignore
1212
1313 impl = types .String
1414 cache_ok = True
@@ -23,7 +23,7 @@ def load_dialect_impl(self, dialect: Dialect) -> "types.TypeEngine[Any]":
2323
2424# Reference form SQLAlchemy docs: https://docs.sqlalchemy.org/en/14/core/custom_types.html#backend-agnostic-guid-type
2525# with small modifications
26- class GUID (TypeDecorator [ Any ]):
26+ class GUID (TypeDecorator ): # type: ignore
2727 """Platform-independent GUID type.
2828
2929 Uses PostgreSQL's UUID type, otherwise uses
@@ -34,7 +34,7 @@ class GUID(TypeDecorator[Any]):
3434 impl = CHAR
3535 cache_ok = True
3636
37- def load_dialect_impl (self , dialect : Dialect ) -> TypeEngine [ Any ]:
37+ def load_dialect_impl (self , dialect : Dialect ) -> TypeEngine : # type: ignore
3838 if dialect .name == "postgresql" :
3939 return dialect .type_descriptor (UUID ()) # type: ignore
4040 else :
You can’t perform that action at this time.
0 commit comments