mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Add condition argument to pynamodb model delete (#2182)
This commit is contained in:
2
third_party/2and3/pynamodb/models.pyi
vendored
2
third_party/2and3/pynamodb/models.pyi
vendored
@@ -28,7 +28,7 @@ class Model(metaclass=MetaModel):
|
||||
def batch_get(cls: Type[_T], items: Iterable[Union[KeyType, Iterable[KeyType]]], consistent_read: Optional[bool] = ..., attributes_to_get: Optional[Sequence[Text]] = ...) -> Iterator[_T]: ...
|
||||
@classmethod
|
||||
def batch_write(cls: Type[_T], auto_commit: bool = ...) -> BatchWrite[_T]: ...
|
||||
def delete(self, conditional_operator: Optional[Text] = ..., **expected_values) -> Any: ...
|
||||
def delete(self, condition: Optional[Any] = ..., conditional_operator: Optional[Text] = ..., **expected_values) -> Any: ...
|
||||
def update(self, attributes: Optional[Dict[Text, Dict[Text, Any]]] = ..., actions: Optional[List[Any]] = ..., condition: Optional[Any] = ..., conditional_operator: Optional[Text] = ..., **expected_values) -> Any: ...
|
||||
def update_item(self, attribute: Text, value: Optional[Any] = ..., action: Optional[Text] = ..., conditional_operator: Optional[Text] = ..., **expected_values): ...
|
||||
def save(self, condition: Optional[Any] = ..., conditional_operator: Optional[Text] = ..., **expected_values) -> Dict[str, Any]: ...
|
||||
|
||||
Reference in New Issue
Block a user