botocore-stubs 1.35.84__py3-none-any.whl → 1.35.84.post1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of botocore-stubs might be problematic. Click here for more details.

botocore-stubs/client.pyi CHANGED
@@ -129,7 +129,7 @@ class BaseClient:
129
129
  # FIXME: it hides `has no attribute` errors on Client type checking
130
130
  # def __getattr__(self, item: str) -> Any: ...
131
131
  def close(self) -> None: ...
132
- def get_paginator(self, operation_name: str) -> Paginator: ...
132
+ def get_paginator(self, operation_name: str) -> Paginator[Any]: ...
133
133
  def can_paginate(self, operation_name: str) -> bool: ...
134
134
  def get_waiter(self, waiter_name: str) -> Waiter: ...
135
135
  @CachedProperty
@@ -5,12 +5,15 @@ Copyright 2024 Vlad Emelianov
5
5
  """
6
6
 
7
7
  from logging import Logger
8
- from typing import Any, Iterator
8
+ from typing import Any, Generic, Iterator, TypeVar
9
9
 
10
10
  from botocore.exceptions import PaginationError as PaginationError
11
+ from botocore.model import OperationModel
11
12
  from botocore.utils import merge_dicts as merge_dicts
12
13
  from botocore.utils import set_value_from_jmespath as set_value_from_jmespath
14
+ from jmespath.parser import ParsedResult
13
15
 
16
+ _R = TypeVar("_R")
14
17
  log: Logger = ...
15
18
 
16
19
  class TokenEncoder:
@@ -23,7 +26,7 @@ class PaginatorModel:
23
26
  def __init__(self, paginator_config: Any) -> None: ...
24
27
  def get_paginator(self, operation_name: str) -> Any: ...
25
28
 
26
- class PageIterator:
29
+ class PageIterator(Generic[_R]):
27
30
  def __init__(
28
31
  self,
29
32
  method: Any,
@@ -32,34 +35,39 @@ class PageIterator:
32
35
  more_results: Any,
33
36
  result_keys: Any,
34
37
  non_aggregate_keys: Any,
35
- limit_key: Any,
38
+ limit_key: str,
36
39
  max_items: int,
37
40
  starting_token: Any,
38
41
  page_size: int,
39
- op_kwargs: Any,
42
+ op_kwargs: dict[str, Any],
40
43
  ) -> None: ...
41
44
  @property
42
- def result_keys(self) -> Any: ...
45
+ def result_keys(self) -> list[ParsedResult] | None: ...
43
46
  @property
44
- def resume_token(self) -> Any: ...
47
+ def resume_token(self) -> dict[str, Any] | None: ...
45
48
  @resume_token.setter
46
- def resume_token(self, value: Any) -> None: ...
49
+ def resume_token(self, value: dict[str, Any] | None) -> None: ...
47
50
  @property
48
- def non_aggregate_part(self) -> Any: ...
49
- def __iter__(self) -> Iterator[Any]: ...
50
- def search(self, expression: Any) -> Iterator[Any]: ...
51
- def result_key_iters(self) -> Any: ...
52
- def build_full_result(self) -> Any: ...
51
+ def non_aggregate_part(self) -> dict[str, Any]: ...
52
+ def __iter__(self) -> Iterator[_R]: ...
53
+ def search(self, expression: str) -> Iterator[_R]: ...
54
+ def result_key_iters(self) -> list[ResultKeyIterator[_R]]: ...
55
+ def build_full_result(self) -> dict[str, Any]: ...
53
56
 
54
- class Paginator:
55
- PAGE_ITERATOR_CLS: Any = ...
56
- def __init__(self, method: Any, pagination_config: Any, model: Any) -> None: ...
57
+ class Paginator(Generic[_R]):
58
+ PAGE_ITERATOR_CLS: type[PageIterator[Any]] = ...
59
+ def __init__(
60
+ self,
61
+ method: str,
62
+ pagination_config: dict[str, Any],
63
+ model: OperationModel,
64
+ ) -> None: ...
57
65
  @property
58
- def result_keys(self) -> Any: ...
59
- def paginate(self, **kwargs: Any) -> Any: ...
66
+ def result_keys(self) -> list[ParsedResult] | None: ...
67
+ def paginate(self, **kwargs: Any) -> PageIterator[_R]: ...
60
68
 
61
- class ResultKeyIterator:
62
- def __init__(self, pages_iterator: Any, result_key: Any) -> None:
63
- self.result_key: Any = ...
69
+ class ResultKeyIterator(Generic[_R]):
70
+ def __init__(self, pages_iterator: PageIterator[_R], result_key: ParsedResult) -> None:
71
+ self.result_key: ParsedResult = ...
64
72
 
65
- def __iter__(self) -> Any: ...
73
+ def __iter__(self) -> Iterator[_R]: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: botocore-stubs
3
- Version: 1.35.84
3
+ Version: 1.35.84.post1
4
4
  Summary: Type annotations and code completion for botocore
5
5
  Author-email: Vlad Emelianov <vlad.emelianov.nz@gmail.com>
6
6
  License: MIT License
@@ -2,7 +2,7 @@ botocore-stubs/__init__.pyi,sha256=bq_q1YexziG-wmFw5JtHoY9Twws6zGcxJH3XzOEtA4A,6
2
2
  botocore-stubs/args.pyi,sha256=BSQUiOsOQkzyLKd01CrqtbNoc6QQq4a0vE3YgxE4fUg,2915
3
3
  botocore-stubs/auth.pyi,sha256=bx9CSI3gqIfcKrRs79NiTtyFR_VL9nJ8x02_s7J9wtc,5403
4
4
  botocore-stubs/awsrequest.pyi,sha256=XLd6USfkmQWtQyZvAjnWw795ZWqg3GM2Ob4nMkysXIY,4083
5
- botocore-stubs/client.pyi,sha256=H1IUOtd9VE3yTK7FVm0GEyDSZIq8YiVu2YzSP3AbHwM,6395
5
+ botocore-stubs/client.pyi,sha256=iSaqkgXJ_jxiaESy1fnYh5AJ5ORo9WRwDQBDh6BsvNI,6400
6
6
  botocore-stubs/compat.pyi,sha256=Q8_aKWie83KgbrMrJwAhvkRHu5WXLRrlww4OQziK4TE,2428
7
7
  botocore-stubs/compress.pyi,sha256=WnJqbpiKOeIX1GKbu-VzsB_ViGmshAR0l6HSxPHyjNY,638
8
8
  botocore-stubs/config.pyi,sha256=jF2oM6ce-E2Tcogu1wtDeG47KvHQq_C2lZeXVVOYSJQ,2392
@@ -23,7 +23,7 @@ botocore-stubs/httpsession.pyi,sha256=QaXu2NwCdlZcc5vPvzpZTyrQG_2SowD51Wizg2Ag_G
23
23
  botocore-stubs/loaders.pyi,sha256=FrvA9Vf5NJthc9A8JWYcKxHy5iL_H47CvhB19nOs6X0,2041
24
24
  botocore-stubs/model.pyi,sha256=008WqjhqvrG-w80Is5iGa4vS_ZqyU7wqOIzHF-aOR-w,6779
25
25
  botocore-stubs/monitoring.pyi,sha256=vzaCFcKidSdfWoEMZX_a8UBLP4_4raZH0pk9vPX8_Vo,2841
26
- botocore-stubs/paginate.pyi,sha256=H74lG3aWjAilaYCVTpvLSs5cO5bLokthKLe6QbhsBE8,1858
26
+ botocore-stubs/paginate.pyi,sha256=TxesgJ1J33gQSLT5DjskklxTIv9K_CYqrZfPuHnIwyk,2286
27
27
  botocore-stubs/parsers.pyi,sha256=CGEoLBmCQ_JNS2B297EevHeqyg-gx3G9v1JLET6ESc0,2148
28
28
  botocore-stubs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  botocore-stubs/regions.pyi,sha256=83dj3rQ2mxw-yne7EUSxOZL28kMnaTLos0TT--inW7A,3345
@@ -66,8 +66,8 @@ botocore-stubs/retries/quota.pyi,sha256=u8mQvw5MvRwSZDT4yMabqtu4j7d9Kjdd3fOOSowq
66
66
  botocore-stubs/retries/special.pyi,sha256=yLsS9lpzxXFJwwczCCDIwzbNsINB8xA-esROkNyDcug,461
67
67
  botocore-stubs/retries/standard.pyi,sha256=D7EapQHWFdndPkyI4zDvJrGkPZ96lbzR2iWHrmhw1k4,4329
68
68
  botocore-stubs/retries/throttling.pyi,sha256=7XppYXEMcIcSd94RacezLzxgm5QFzlkKNkxXPkRBDvc,582
69
- botocore_stubs-1.35.84.dist-info/LICENSE,sha256=YIdUJ_cFRZScLZQFyRT_O8yCCxXFhFKmXaqgDpe3rpM,1071
70
- botocore_stubs-1.35.84.dist-info/METADATA,sha256=a4pRhll76NUnaETHMUtLeEefO5Dcvbmun1v7B4vt9Bk,4605
71
- botocore_stubs-1.35.84.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
72
- botocore_stubs-1.35.84.dist-info/top_level.txt,sha256=hB4vH6fIntn8CrZExgrgxRrlukQb06YRGFcOvWZ2th8,15
73
- botocore_stubs-1.35.84.dist-info/RECORD,,
69
+ botocore_stubs-1.35.84.post1.dist-info/LICENSE,sha256=YIdUJ_cFRZScLZQFyRT_O8yCCxXFhFKmXaqgDpe3rpM,1071
70
+ botocore_stubs-1.35.84.post1.dist-info/METADATA,sha256=Q0E1QjEwyOnUjMM8B0DDkEDDQBHCMcRCfruR9lPht28,4611
71
+ botocore_stubs-1.35.84.post1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
72
+ botocore_stubs-1.35.84.post1.dist-info/top_level.txt,sha256=hB4vH6fIntn8CrZExgrgxRrlukQb06YRGFcOvWZ2th8,15
73
+ botocore_stubs-1.35.84.post1.dist-info/RECORD,,