From 8891b02d514e62ea55bdf500aa53bb9f09b1e523 Mon Sep 17 00:00:00 2001 From: Roy Williams Date: Fri, 23 Feb 2018 13:18:55 -0800 Subject: [PATCH] Make `update` parameters all optional (#1913) As of https://github.com/pynamodb/PynamoDB/pull/352 all of these params are optional. --- third_party/2and3/pynamodb/models.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/2and3/pynamodb/models.pyi b/third_party/2and3/pynamodb/models.pyi index 4bc07e7a0..19d5f6cc1 100644 --- a/third_party/2and3/pynamodb/models.pyi +++ b/third_party/2and3/pynamodb/models.pyi @@ -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 = ...): ...