Skip to content

Commit 2b74be9

Browse files
ilevkivskyiIvan Levkivskyi
and
Ivan Levkivskyi
authored
Fix in operator annotations (and corresponding imports) (#200)
Co-authored-by: Ivan Levkivskyi <[email protected]>
1 parent 84e1ebd commit 2b74be9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sqlalchemy-stubs/sql/operators.pyi

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Any, Iterable, Optional, Text, Union
2-
from .selectable import Select as Select
3-
from .elements import BindParameter as BindParameter, UnaryExpression
2+
from .selectable import Select, Alias
3+
from .elements import BindParameter, UnaryExpression
44

55
class Operators(object):
66
def __and__(self, other): ...
@@ -42,8 +42,8 @@ class ColumnOperators(Operators):
4242
def concat(self, other): ...
4343
def like(self, other: Text, escape: Optional[Any] = ...): ...
4444
def ilike(self, other: Text, escape: Optional[Any] = ...): ...
45-
def in_(self, other: Union[Iterable[Any], BindParameter, Select]): ...
46-
def notin_(self, other: Union[Iterable[Any], BindParameter, Select]): ...
45+
def in_(self, other: Union[Iterable[Any], BindParameter, Select, Alias]): ...
46+
def notin_(self, other: Union[Iterable[Any], BindParameter, Select, Alias]): ...
4747
def notlike(self, other, escape: Optional[Any] = ...): ...
4848
def notilike(self, other, escape: Optional[Any] = ...): ...
4949
def is_(self, other): ...

0 commit comments

Comments
 (0)