Skip to content

Commit f2624ac

Browse files
committed
wip
Fixes dropbox#94
1 parent 91e8ca9 commit f2624ac

File tree

1 file changed

+3
-2
lines changed
  • sqlalchemy-stubs/dialects/postgresql

1 file changed

+3
-2
lines changed

sqlalchemy-stubs/dialects/postgresql/base.pyi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from ... import schema
22
from ...engine import default, reflection
33
from ...sql import compiler, expression, sqltypes, type_api
4-
from typing import Any, Optional, Set, Type, Text, Pattern, Dict
4+
from typing import Any, Optional, Set, Type, Text, Pattern, Dict, Union
55
from datetime import timedelta
6+
import uuid
67

78
from sqlalchemy.types import INTEGER as INTEGER, BIGINT as BIGINT, SMALLINT as SMALLINT, VARCHAR as VARCHAR, \
89
CHAR as CHAR, TEXT as TEXT, FLOAT as FLOAT, NUMERIC as NUMERIC, \
@@ -66,7 +67,7 @@ class BIT(sqltypes.TypeEngine[str]):
6667
def __init__(self, length: Optional[int] = ..., varying: bool = ...) -> None: ...
6768
PGBit = BIT
6869

69-
class UUID(sqltypes.TypeEngine[str]):
70+
class UUID(sqltypes.TypeEngine[Union[str, uuid.UUID]]):
7071
__visit_name__: str = ...
7172
as_uuid: bool = ...
7273
def __init__(self, as_uuid: bool = ...) -> None: ...

0 commit comments

Comments
 (0)