Skip to content

Commit 37c6293

Browse files
dbantyilevkivskyi
authored andcommitted
Allow bool in update synchronize_session (#117)
1 parent d3fd670 commit 37c6293

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sqlalchemy-stubs/orm/query.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Optional
1+
from typing import Any, Optional, Union
22
from . import interfaces
33
from .base import InspectionAttr
44
from ..sql.selectable import ForUpdateArg
@@ -81,8 +81,8 @@ class Query(object):
8181
def merge_result(self, iterator, load: bool = ...): ...
8282
def exists(self): ...
8383
def count(self): ...
84-
def delete(self, synchronize_session: str = ...): ...
85-
def update(self, values, synchronize_session: str = ..., update_args: Optional[Any] = ...): ...
84+
def delete(self, synchronize_session: Union[bool, str] = ...): ...
85+
def update(self, values, synchronize_session: Union[bool, str] = ..., update_args: Optional[Any] = ...): ...
8686

8787
class LockmodeArg(ForUpdateArg):
8888
@classmethod

0 commit comments

Comments
 (0)