Skip to content

Commit 626d896

Browse files
fix: add execution_options to session.get (#205)
* fix: add execution_options to session.get Fixes: #204 * fix: add execution_options to get in ext/asyncio
1 parent dc2e7b6 commit 626d896

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

sqlalchemy-stubs/ext/asyncio/session.pyi

+2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ class _AsyncSessionProtocol(
113113
Union[Literal[True], Mapping[str, Any]]
114114
] = ...,
115115
identity_token: Optional[Any] = ...,
116+
execution_options: Optional[_ExecuteOptions] = ...,
116117
) -> Optional[_T]: ...
117118
async def stream(
118119
self,
@@ -175,6 +176,7 @@ class _AsyncSessionTypingCommon(
175176
populate_existing: bool = ...,
176177
with_for_update: Optional[Any] = ...,
177178
identity_token: Optional[Any] = ...,
179+
execution_options: Optional[_ExecuteOptions] = ...,
178180
) -> Optional[_T]: ...
179181
async def merge(
180182
self,

sqlalchemy-stubs/orm/session.pyi

+2
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ class _SessionProtocol(
158158
Union[Literal[True], Mapping[str, Any]]
159159
] = ...,
160160
identity_token: Optional[Any] = ...,
161+
execution_options: Optional[_ExecuteOptions] = ...,
161162
) -> Optional[_T]: ...
162163
def merge(
163164
self,
@@ -383,6 +384,7 @@ class _SessionTypingCommon(
383384
Union[Literal[True], Mapping[str, Any]]
384385
] = ...,
385386
identity_token: Optional[Any] = ...,
387+
execution_options: Optional[_ExecuteOptions] = ...,
386388
) -> Optional[_T]: ...
387389
def bulk_save_objects(
388390
self,

0 commit comments

Comments
 (0)