Skip to content

Commit

Permalink
Update type stubs for TTL feature (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikonst authored Jun 28, 2019
1 parent 77f1cb8 commit 569552b
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
13 changes: 13 additions & 0 deletions docs/release_notes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
Release Notes
=============

v3.4.1
------

:date: 2019-06-28

This is a backwards compatible, minor release.

Changes in this release:

* Fix type stubs to include new methods and parameters introduced with time-to-live support


v3.4.0
------

Expand All @@ -19,6 +31,7 @@ Contributors to this release:
* @irhkang
* @ikonst


v3.3.3
------

Expand Down
2 changes: 1 addition & 1 deletion pynamodb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"""
__author__ = 'Jharrod LaFon'
__license__ = 'MIT'
__version__ = '3.4.0'
__version__ = '3.4.1'
1 change: 1 addition & 0 deletions pynamodb/connection/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Connection:
def client(self): ...
def get_meta_table(self, table_name: Text, refresh: bool = ...): ...
def create_table(self, table_name: Text, attribute_definitions: Optional[Any] = ..., key_schema: Optional[Any] = ..., read_capacity_units: Optional[Any] = ..., write_capacity_units: Optional[Any] = ..., global_secondary_indexes: Optional[Any] = ..., local_secondary_indexes: Optional[Any] = ..., stream_specification: Optional[Any] = ...): ...
def update_time_to_live(self, table_name: Text, ttl_attribute_name: Text): ...
def delete_table(self, table_name: Text): ...
def update_table(self, table_name: Text, read_capacity_units: Optional[Any] = ..., write_capacity_units: Optional[Any] = ..., global_secondary_index_updates: Optional[Any] = ...): ...
def list_tables(self, exclusive_start_table_name: Optional[Any] = ..., limit: Optional[Any] = ...): ...
Expand Down
1 change: 1 addition & 0 deletions pynamodb/connection/table.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class TableConnection:
def query(self, hash_key, attributes_to_get: Optional[Any] = ..., consistent_read: bool = ..., exclusive_start_key: Optional[Any] = ..., index_name: Optional[Any] = ..., key_conditions: Optional[Any] = ..., query_filters: Optional[Any] = ..., limit: Optional[Any] = ..., return_consumed_capacity: Optional[Any] = ..., scan_index_forward: Optional[Any] = ..., conditional_operator: Optional[Any] = ..., select: Optional[Any] = ...): ...
def describe_table(self): ...
def delete_table(self): ...
def update_time_to_live(self, ttl_attr_name: Text): ...
def update_table(self, read_capacity_units: Optional[Any] = ..., write_capacity_units: Optional[Any] = ..., global_secondary_index_updates: Optional[Any] = ...): ...
def create_table(self, attribute_definitions: Optional[Any] = ..., key_schema: Optional[Any] = ..., read_capacity_units: Optional[Any] = ..., write_capacity_units: Optional[Any] = ..., global_secondary_indexes: Optional[Any] = ..., local_secondary_indexes: Optional[Any] = ..., stream_specification: Optional[Any] = ...): ...

4 changes: 3 additions & 1 deletion pynamodb/models.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ class Model(metaclass=MetaModel):
@classmethod
def describe_table(cls): ...
@classmethod
def create_table(cls: Type[_T], wait: bool = ..., read_capacity_units: Optional[Any] = ..., write_capacity_units: Optional[Any] = ...): ...
def create_table(cls: Type[_T], wait: bool = ..., read_capacity_units: Optional[Any] = ..., write_capacity_units: Optional[Any] = ..., ignore_update_ttl_errors: bool = ...): ...
@classmethod
def update_ttl(cls, ignore_update_ttl_errors: bool) -> None: ...
@classmethod
def dumps(cls): ...
@classmethod
Expand Down

0 comments on commit 569552b

Please sign in to comment.