Skip to content

Commit 8904b05

Browse files
authored
Add return type of scoped_session.__call__ (#138)
* Add return type of scoped_session.__call__ * Update scoping.pyi
1 parent 149fc2e commit 8904b05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sqlalchemy-stubs/orm/scoping.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
from typing import Any
22
from typing import Optional
33

4+
from ..orm import Session
5+
46
class scoped_session:
57
session_factory: Any = ...
68
registry: Any = ...
79
def __init__(
810
self, session_factory: Any, scopefunc: Optional[Any] = ...
911
) -> None: ...
10-
def __call__(self, **kw: Any): ...
12+
def __call__(self, **kw: Any) -> Session: ...
1113
def remove(self) -> None: ...
1214
def configure(self, **kwargs: Any) -> None: ...
1315
def query_property(self, query_cls: Optional[Any] = ...): ...

0 commit comments

Comments
 (0)