Skip to content

Commit 2a62e9a

Browse files
authored
fix(sql.schema): alias typing.Sequence -> _Sequence to avoid conflict with class Sequence (#210)
Fixes: #209
1 parent 1ce6d53 commit 2a62e9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sqlalchemy-stubs/sql/schema.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ from typing import List
88
from typing import MutableMapping
99
from typing import Optional
1010
from typing import overload
11-
from typing import Sequence
11+
from typing import Sequence as _Sequence
1212
from typing import Set
1313
from typing import Type
1414
from typing import TypeVar
@@ -74,7 +74,7 @@ class Table(DialectKWArgs, SchemaItem, TableClause):
7474
fullname: str = ...
7575
implicit_returning: bool = ...
7676
comment: Optional[str] = ...
77-
_prefixes: Sequence[str] = ...
77+
_prefixes: _Sequence[str] = ...
7878
def __new__(cls: Type[_TAB], *args: Any, **kw: Any) -> _TAB: ...
7979
def __init__(self, *args: Any, **kw: Any) -> None: ...
8080
@property
@@ -343,7 +343,7 @@ class Sequence(
343343
data_type: Optional[_TE] = ...
344344
@overload
345345
def __init__(
346-
self: Sequence[sqltypes.Integer],
346+
self: _Sequence[sqltypes.Integer],
347347
name: str,
348348
start: Optional[int] = ...,
349349
increment: Optional[int] = ...,

0 commit comments

Comments
 (0)