Make update parameters all optional (#1913)

As of https://github.com/pynamodb/PynamoDB/pull/352 all of these params are optional.
This commit is contained in:
Roy Williams
2018-02-23 13:18:55 -08:00
committed by Jelle Zijlstra
parent 84b6e95bdc
commit 8891b02d51

View File

@@ -29,7 +29,7 @@ class Model(metaclass=MetaModel):
@classmethod
def batch_write(cls: Type[_T], auto_commit: bool = ...) -> BatchWrite[_T]: ...
def delete(self, 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(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]: ...
def refresh(self, consistent_read: bool = ...): ...