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(
121121 ** kw : Any ,
122122 ) -> Any : ...
123123 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 : ...
125130 async def flush (
126131 self , objects : Optional [Collection [Any ]] = ...
127132 ) -> None : ...
@@ -152,12 +157,17 @@ class _AsyncSessionTypingCommon(
152157 self ,
153158 entity : Type [_T ],
154159 ident : Any ,
155- options : Optional [Any ] = ...,
160+ options : Optional [Sequence [ Any ] ] = ...,
156161 populate_existing : bool = ...,
157162 with_for_update : Optional [Any ] = ...,
158163 identity_token : Optional [Any ] = ...,
159164 ) -> 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 : ...
161171 async def refresh (
162172 self ,
163173 instance : Any ,
Original file line number Diff line number Diff line change @@ -150,7 +150,12 @@ class _SessionProtocol(
150150 ] = ...,
151151 identity_token : Optional [Any ] = ...,
152152 ) -> 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 : ...
154159 def flush (self , objects : Optional [Collection [Any ]] = ...) -> None : ...
155160 @classmethod
156161 def close_all (cls ) -> None : ... # NOTE: Deprecated.
@@ -387,7 +392,12 @@ class _SessionTypingCommon(
387392 def bulk_update_mappings (
388393 self , mapper : Any , mappings : Sequence [Mapping [str , Any ]]
389394 ) -> 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 : ...
391401 def query (self , * entities : Any , ** kwargs : Any ) -> Query [Any ]: ...
392402 def refresh (
393403 self ,
You can’t perform that action at this time.
0 commit comments