mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 04:52:23 +08:00
pynamodb: fix rate_limited_scan defaults (#2167)
The `rate_limited_scan` method has defaults for all arguments, including `attributes_to_get` which was omitted.
This commit is contained in:
committed by
Jelle Zijlstra
parent
d7067fb287
commit
129df4957c
21
third_party/2and3/pynamodb/models.pyi
vendored
21
third_party/2and3/pynamodb/models.pyi
vendored
@@ -42,7 +42,26 @@ class Model(metaclass=MetaModel):
|
||||
@classmethod
|
||||
def query(cls: Type[_T], hash_key: KeyType, consistent_read: bool = ..., index_name: Optional[Text] = ..., scan_index_forward: Optional[Any] = ..., conditional_operator: Optional[Text] = ..., limit: Optional[int] = ..., last_evaluated_key: Optional[Any] = ..., attributes_to_get: Optional[Iterable[Text]] = ..., page_size: Optional[int] = ..., **filters) -> Iterator[_T]: ...
|
||||
@classmethod
|
||||
def rate_limited_scan(cls: Type[_T], attributes_to_get: Optional[Sequence[Text]], segment: Optional[int] = ..., total_segments: Optional[int] = ..., limit: Optional[int] = ..., conditional_operator: Optional[Text] = ..., last_evaluated_key: Optional[Any] = ..., page_size: Optional[int] = ..., timeout_seconds: Optional[int] = ..., read_capacity_to_consume_per_second: int = ..., max_sleep_between_retry: int = ..., max_consecutive_exceptions: int = ..., **filters: Any): ...
|
||||
def rate_limited_scan(
|
||||
cls: Type[_T],
|
||||
# TODO: annotate Condition class
|
||||
filter_condition: Optional[Any] = ...,
|
||||
attributes_to_get: Optional[Sequence[Text]] = ...,
|
||||
segment: Optional[int] = ...,
|
||||
total_segments: Optional[int] = ...,
|
||||
limit: Optional[int] = ...,
|
||||
conditional_operator: Optional[Text] = ...,
|
||||
last_evaluated_key: Optional[Any] = ...,
|
||||
page_size: Optional[int] = ...,
|
||||
timeout_seconds: Optional[int] = ...,
|
||||
read_capacity_to_consume_per_second: int = ...,
|
||||
allow_rate_limited_scan_without_consumed_capacity: Optional[bool] = ...,
|
||||
max_sleep_between_retry: int = ...,
|
||||
max_consecutive_exceptions: int = ...,
|
||||
consistent_read: Optional[bool] = ...,
|
||||
index_name: Optional[str] = ...,
|
||||
**filters: Any
|
||||
) -> Iterator[_T]: ...
|
||||
@classmethod
|
||||
def scan(cls: Type[_T], segment: Optional[int] = ..., total_segments: Optional[int] = ..., limit: Optional[int] = ..., conditional_operator: Optional[Text] = ..., last_evaluated_key: Optional[Any] = ..., page_size: Optional[int] = ..., **filters) -> Iterator[_T]: ...
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user