File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11import uuid
22from typing import Any , Optional , cast
33
4- from sqlalchemy import types
4+ from sqlalchemy import CHAR , types
55from sqlalchemy .dialects .postgresql import UUID
66from sqlalchemy .engine .interfaces import Dialect
77from sqlalchemy .sql .type_api import TypeEngine
8- from sqlalchemy .types import CHAR , TypeDecorator
98
109
1110class AutoString (types .TypeDecorator ): # type: ignore
@@ -23,7 +22,7 @@ def load_dialect_impl(self, dialect: Dialect) -> "types.TypeEngine[Any]":
2322
2423# Reference form SQLAlchemy docs: https://docs.sqlalchemy.org/en/14/core/custom_types.html#backend-agnostic-guid-type
2524# with small modifications
26- class GUID (TypeDecorator ): # type: ignore
25+ class GUID (types . TypeDecorator ): # type: ignore
2726 """Platform-independent GUID type.
2827
2928 Uses PostgreSQL's UUID type, otherwise uses
You can’t perform that action at this time.
0 commit comments