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 1
1
import uuid
2
2
from typing import Any , Optional , cast
3
3
4
- from sqlalchemy import types
4
+ from sqlalchemy import CHAR , types
5
5
from sqlalchemy .dialects .postgresql import UUID
6
6
from sqlalchemy .engine .interfaces import Dialect
7
7
from sqlalchemy .sql .type_api import TypeEngine
8
- from sqlalchemy .types import CHAR , TypeDecorator
9
8
10
9
11
10
class AutoString (types .TypeDecorator ): # type: ignore
@@ -23,7 +22,7 @@ def load_dialect_impl(self, dialect: Dialect) -> "types.TypeEngine[Any]":
23
22
24
23
# Reference form SQLAlchemy docs: https://docs.sqlalchemy.org/en/14/core/custom_types.html#backend-agnostic-guid-type
25
24
# with small modifications
26
- class GUID (TypeDecorator ): # type: ignore
25
+ class GUID (types . TypeDecorator ): # type: ignore
27
26
"""Platform-independent GUID type.
28
27
29
28
Uses PostgreSQL's UUID type, otherwise uses
You can’t perform that action at this time.
0 commit comments