|
1 | 1 | from typing import ( |
2 | | - Any, Optional, Union, Set, Generic, TypeVar, Type, List, Dict, Tuple, Set, Sequence as SequenceType, Mapping, |
| 2 | + Any, Optional, Union, Generic, TypeVar, Type, List, Tuple, Set, Sequence as SequenceType, Mapping, |
3 | 3 | Callable, Iterable, Iterator, overload |
4 | 4 | ) |
5 | 5 | from . import visitors, functions |
6 | 6 | from .base import SchemaEventTarget as SchemaEventTarget, DialectKWArgs as DialectKWArgs, ColumnCollection |
7 | | -from .elements import ColumnClause as ColumnClause, TextClause |
| 7 | +from .elements import ColumnClause as ColumnClause, TextClause, ColumnElement |
8 | 8 | from .selectable import TableClause as TableClause |
9 | 9 | from .type_api import TypeEngine |
10 | 10 | from .. import util |
@@ -304,7 +304,7 @@ class Index(DialectKWArgs, ColumnCollectionMixin, SchemaItem): |
304 | 304 | name: str = ... |
305 | 305 | unique: bool = ... |
306 | 306 | info: Optional[Mapping[str, Any]] = ... |
307 | | - def __init__(self, name: str, *expressions: Union[TextClause, Column[Any], str], unique: bool = ..., |
| 307 | + def __init__(self, name: str, *expressions: Union[TextClause, ColumnElement[Any], str], unique: bool = ..., |
308 | 308 | quote: Optional[bool] = ..., info: Optional[Mapping[str, Any]] = ..., **kw: Any) -> None: ... |
309 | 309 | @property |
310 | 310 | def bind(self) -> Optional[Union[Engine, Connection]]: ... |
|
0 commit comments