Skip to content

Commit 46008db

Browse files
isra17ilevkivskyi
authored andcommitted
Add missing types (#102)
1 parent 37c6293 commit 46008db

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

sqlalchemy-stubs/engine/base.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class Engine(Connectable, log.Identified):
9898
def name(self): ...
9999
@property
100100
def driver(self): ...
101-
def dispose(self): ...
101+
def dispose(self) -> None: ...
102102
def begin(self, close_with_result: bool = ...): ...
103103
def transaction(self, callable_, *args, **kwargs): ...
104104
def run_callable(self, callable_, *args, **kwargs): ...

sqlalchemy-stubs/sql/operators.pyi

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
from typing import Any, Optional, Text
1+
from typing import Any, Optional, Text, List, Union
2+
from .selectable import Select as Select
3+
from .elements import BindParameter as BindParameter
24

35
class Operators(object):
46
def __and__(self, other): ...
@@ -40,8 +42,8 @@ class ColumnOperators(Operators):
4042
def concat(self, other): ...
4143
def like(self, other: Text, escape: Optional[Any] = ...): ...
4244
def ilike(self, other: Text, escape: Optional[Any] = ...): ...
43-
def in_(self, other): ...
44-
def notin_(self, other): ...
45+
def in_(self, other: Union[List[Any], BindParameter, Select]): ...
46+
def notin_(self, other: Union[List[Any], BindParameter, Select]): ...
4547
def notlike(self, other, escape: Optional[Any] = ...): ...
4648
def notilike(self, other, escape: Optional[Any] = ...): ...
4749
def is_(self, other): ...

0 commit comments

Comments
 (0)