Skip to content

Commit

Permalink
fix: add execution_options to session.get (#205)
Browse files Browse the repository at this point in the history
* fix: add execution_options to session.get

Fixes: #204

* fix: add execution_options to get in ext/asyncio
  • Loading branch information
peteris-zealid authored Feb 17, 2022
1 parent dc2e7b6 commit 626d896
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sqlalchemy-stubs/ext/asyncio/session.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class _AsyncSessionProtocol(
Union[Literal[True], Mapping[str, Any]]
] = ...,
identity_token: Optional[Any] = ...,
execution_options: Optional[_ExecuteOptions] = ...,
) -> Optional[_T]: ...
async def stream(
self,
Expand Down Expand Up @@ -175,6 +176,7 @@ class _AsyncSessionTypingCommon(
populate_existing: bool = ...,
with_for_update: Optional[Any] = ...,
identity_token: Optional[Any] = ...,
execution_options: Optional[_ExecuteOptions] = ...,
) -> Optional[_T]: ...
async def merge(
self,
Expand Down
2 changes: 2 additions & 0 deletions sqlalchemy-stubs/orm/session.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ class _SessionProtocol(
Union[Literal[True], Mapping[str, Any]]
] = ...,
identity_token: Optional[Any] = ...,
execution_options: Optional[_ExecuteOptions] = ...,
) -> Optional[_T]: ...
def merge(
self,
Expand Down Expand Up @@ -383,6 +384,7 @@ class _SessionTypingCommon(
Union[Literal[True], Mapping[str, Any]]
] = ...,
identity_token: Optional[Any] = ...,
execution_options: Optional[_ExecuteOptions] = ...,
) -> Optional[_T]: ...
def bulk_save_objects(
self,
Expand Down

0 comments on commit 626d896

Please sign in to comment.