File tree Expand file tree Collapse file tree 2 files changed +25
-5
lines changed Expand file tree Collapse file tree 2 files changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,12 @@ class _AsyncSessionProtocol(
121
121
** kw : Any ,
122
122
) -> Any : ...
123
123
async def delete (self , instance : Any ) -> None : ...
124
- async def merge (self , instance : _T , load : bool = ...) -> _T : ...
124
+ async def merge (
125
+ self ,
126
+ instance : _T ,
127
+ load : bool = ...,
128
+ options : Optional [Sequence [Any ]] = ...,
129
+ ) -> _T : ...
125
130
async def flush (
126
131
self , objects : Optional [Collection [Any ]] = ...
127
132
) -> None : ...
@@ -152,12 +157,17 @@ class _AsyncSessionTypingCommon(
152
157
self ,
153
158
entity : Type [_T ],
154
159
ident : Any ,
155
- options : Optional [Any ] = ...,
160
+ options : Optional [Sequence [ Any ] ] = ...,
156
161
populate_existing : bool = ...,
157
162
with_for_update : Optional [Any ] = ...,
158
163
identity_token : Optional [Any ] = ...,
159
164
) -> Optional [_T ]: ...
160
- async def merge (self , instance : _T , load : bool = ...) -> _T : ...
165
+ async def merge (
166
+ self ,
167
+ instance : _T ,
168
+ load : bool = ...,
169
+ options : Optional [Sequence [Any ]] = ...,
170
+ ) -> _T : ...
161
171
async def refresh (
162
172
self ,
163
173
instance : Any ,
Original file line number Diff line number Diff line change @@ -150,7 +150,12 @@ class _SessionProtocol(
150
150
] = ...,
151
151
identity_token : Optional [Any ] = ...,
152
152
) -> Optional [_T ]: ...
153
- def merge (self , instance : _T , load : bool = ...) -> _T : ...
153
+ def merge (
154
+ self ,
155
+ instance : _T ,
156
+ load : bool = ...,
157
+ options : Optional [Sequence [Any ]] = ...,
158
+ ) -> _T : ...
154
159
def flush (self , objects : Optional [Collection [Any ]] = ...) -> None : ...
155
160
@classmethod
156
161
def close_all (cls ) -> None : ... # NOTE: Deprecated.
@@ -387,7 +392,12 @@ class _SessionTypingCommon(
387
392
def bulk_update_mappings (
388
393
self , mapper : Any , mappings : Sequence [Mapping [str , Any ]]
389
394
) -> None : ...
390
- def merge (self , instance : _T , load : bool = ...) -> _T : ...
395
+ def merge (
396
+ self ,
397
+ instance : _T ,
398
+ load : bool = ...,
399
+ options : Optional [Sequence [Any ]] = ...,
400
+ ) -> _T : ...
391
401
def query (self , * entities : Any , ** kwargs : Any ) -> Query [Any ]: ...
392
402
def refresh (
393
403
self ,
You can’t perform that action at this time.
0 commit comments