mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Issue 1858: pynamodb 3.2.1 added new methods in Attributes which are not in typeshed (#1859)
This commit is contained in:
committed by
Jelle Zijlstra
parent
71c2a94cb8
commit
e7b567c1f4
13
third_party/2and3/pynamodb/attributes.pyi
vendored
13
third_party/2and3/pynamodb/attributes.pyi
vendored
@@ -19,6 +19,19 @@ class Attribute(Generic[_T]):
|
||||
def serialize(self, value: Any) -> Any: ...
|
||||
def deserialize(self, value: Any) -> Any: ...
|
||||
def get_value(self, value: Any) -> Any: ...
|
||||
def between(self, lower: Any, upper: Any) -> Any: ...
|
||||
def is_in(self, *values: Any) -> Any: ...
|
||||
def exists(self) -> Any: ...
|
||||
def does_not_exist(self) -> Any: ...
|
||||
def is_type(self) -> Any: ...
|
||||
def startswith(self, prefix: str) -> Any: ...
|
||||
def contains(self, item: Any) -> Any: ...
|
||||
def append(self, other: Any) -> Any: ...
|
||||
def prepend(self, other: Any) -> Any: ...
|
||||
def set(self, value: Any) -> Any: ...
|
||||
def remove(self) -> Any: ...
|
||||
def add(self, *values: Any) -> Any: ...
|
||||
def delete(self, *values: Any) -> Any: ...
|
||||
|
||||
class SetMixin(object):
|
||||
def serialize(self, value): ...
|
||||
|
||||
4
third_party/2and3/pynamodb/models.pyi
vendored
4
third_party/2and3/pynamodb/models.pyi
vendored
@@ -29,9 +29,9 @@ 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: Dict[Text, Dict[Text, 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, conditional_operator: Optional[Text] = ..., **expected_values) -> Dict[str, Any]: ...
|
||||
def save(self, condition: Optional[Any] = ..., conditional_operator: Optional[Text] = ..., **expected_values) -> Dict[str, Any]: ...
|
||||
def refresh(self, consistent_read: bool = ...): ...
|
||||
@classmethod
|
||||
def get(cls: Type[_T], hash_key: KeyType, range_key: Optional[KeyType] = ..., consistent_read: bool = ...) -> _T: ...
|
||||
|
||||
Reference in New Issue
Block a user