mypy-boto3-athena 1.35.74__py3-none-any.whl → 1.35.93__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.
@@ -29,7 +29,7 @@ Usage::
29
29
  list_tags_for_resource_paginator: ListTagsForResourcePaginator = client.get_paginator("list_tags_for_resource")
30
30
  ```
31
31
 
32
- Copyright 2024 Vlad Emelianov
32
+ Copyright 2025 Vlad Emelianov
33
33
  """
34
34
 
35
35
  from .client import AthenaClient
@@ -29,7 +29,7 @@ Usage::
29
29
  list_tags_for_resource_paginator: ListTagsForResourcePaginator = client.get_paginator("list_tags_for_resource")
30
30
  ```
31
31
 
32
- Copyright 2024 Vlad Emelianov
32
+ Copyright 2025 Vlad Emelianov
33
33
  """
34
34
 
35
35
  from .client import AthenaClient
@@ -1,7 +1,7 @@
1
1
  """
2
2
  Main CLI entrypoint.
3
3
 
4
- Copyright 2024 Vlad Emelianov
4
+ Copyright 2025 Vlad Emelianov
5
5
  """
6
6
 
7
7
  import sys
@@ -11,14 +11,14 @@ def print_info() -> None:
11
11
  """
12
12
  Print package info to stdout.
13
13
  """
14
- print(
15
- "Type annotations for boto3 Athena 1.35.74\n"
16
- "Version: 1.35.74\n"
17
- "Builder version: 8.5.0\n"
14
+ sys.stdout.write(
15
+ "Type annotations for boto3 Athena 1.35.93\n"
16
+ "Version: 1.35.93\n"
17
+ "Builder version: 8.8.0\n"
18
18
  "Docs: https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena//\n"
19
19
  "Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#athena\n"
20
20
  "Other services: https://pypi.org/project/boto3-stubs/\n"
21
- "Changelog: https://github.com/youtype/mypy_boto3_builder/releases"
21
+ "Changelog: https://github.com/youtype/mypy_boto3_builder/releases\n"
22
22
  )
23
23
 
24
24
 
@@ -26,7 +26,7 @@ def print_version() -> None:
26
26
  """
27
27
  Print package version to stdout.
28
28
  """
29
- print("1.35.74")
29
+ sys.stdout.write("1.35.93\n")
30
30
 
31
31
 
32
32
  def main() -> None:
@@ -34,7 +34,8 @@ def main() -> None:
34
34
  Main CLI entrypoint.
35
35
  """
36
36
  if "--version" in sys.argv:
37
- return print_version()
37
+ print_version()
38
+ return
38
39
  print_info()
39
40
 
40
41
 
@@ -1,7 +1,7 @@
1
1
  """
2
- Type annotations for athena service client.
2
+ Type annotations for athena service Client.
3
3
 
4
- [Open documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/)
4
+ [Documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/)
5
5
 
6
6
  Usage::
7
7
 
@@ -13,13 +13,17 @@ Usage::
13
13
  client: AthenaClient = session.client("athena")
14
14
  ```
15
15
 
16
- Copyright 2024 Vlad Emelianov
16
+ Copyright 2025 Vlad Emelianov
17
17
  """
18
18
 
19
+ from __future__ import annotations
20
+
19
21
  import sys
20
- from typing import Any, Dict, Mapping, Type, overload
22
+ from typing import Any, overload
21
23
 
22
24
  from botocore.client import BaseClient, ClientMeta
25
+ from botocore.errorfactory import BaseClientExceptions
26
+ from botocore.exceptions import ClientError as BotocoreClientError
23
27
 
24
28
  from .paginator import (
25
29
  GetQueryResultsPaginator,
@@ -149,6 +153,12 @@ from .type_defs import (
149
153
  UpdateWorkGroupInputRequestTypeDef,
150
154
  )
151
155
 
156
+ if sys.version_info >= (3, 9):
157
+ from builtins import dict as Dict
158
+ from builtins import type as Type
159
+ from collections.abc import Mapping
160
+ else:
161
+ from typing import Dict, Mapping, Type
152
162
  if sys.version_info >= (3, 12):
153
163
  from typing import Literal, Unpack
154
164
  else:
@@ -158,15 +168,7 @@ else:
158
168
  __all__ = ("AthenaClient",)
159
169
 
160
170
 
161
- class BotocoreClientError(Exception):
162
- MSG_TEMPLATE: str
163
-
164
- def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
165
- self.response: Dict[str, Any]
166
- self.operation_name: str
167
-
168
-
169
- class Exceptions:
171
+ class Exceptions(BaseClientExceptions):
170
172
  ClientError: Type[BotocoreClientError]
171
173
  InternalServerException: Type[BotocoreClientError]
172
174
  InvalidRequestException: Type[BotocoreClientError]
@@ -211,12 +213,6 @@ class AthenaClient(BaseClient):
211
213
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#generate_presigned_url)
212
214
  """
213
215
 
214
- def close(self) -> None:
215
- """
216
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena/client/close.html)
217
- [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#close)
218
- """
219
-
220
216
  def batch_get_named_query(
221
217
  self, **kwargs: Unpack[BatchGetNamedQueryInputRequestTypeDef]
222
218
  ) -> BatchGetNamedQueryOutputTypeDef:
@@ -918,8 +914,8 @@ class AthenaClient(BaseClient):
918
914
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#update_work_group)
919
915
  """
920
916
 
921
- @overload
922
- def get_paginator(
917
+ @overload # type: ignore[override]
918
+ def get_paginator( # type: ignore[override]
923
919
  self, operation_name: Literal["get_query_results"]
924
920
  ) -> GetQueryResultsPaginator:
925
921
  """
@@ -929,8 +925,8 @@ class AthenaClient(BaseClient):
929
925
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_paginator)
930
926
  """
931
927
 
932
- @overload
933
- def get_paginator(
928
+ @overload # type: ignore[override]
929
+ def get_paginator( # type: ignore[override]
934
930
  self, operation_name: Literal["list_data_catalogs"]
935
931
  ) -> ListDataCatalogsPaginator:
936
932
  """
@@ -940,8 +936,10 @@ class AthenaClient(BaseClient):
940
936
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_paginator)
941
937
  """
942
938
 
943
- @overload
944
- def get_paginator(self, operation_name: Literal["list_databases"]) -> ListDatabasesPaginator:
939
+ @overload # type: ignore[override]
940
+ def get_paginator( # type: ignore[override]
941
+ self, operation_name: Literal["list_databases"]
942
+ ) -> ListDatabasesPaginator:
945
943
  """
946
944
  Create a paginator for an operation.
947
945
 
@@ -949,8 +947,8 @@ class AthenaClient(BaseClient):
949
947
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_paginator)
950
948
  """
951
949
 
952
- @overload
953
- def get_paginator(
950
+ @overload # type: ignore[override]
951
+ def get_paginator( # type: ignore[override]
954
952
  self, operation_name: Literal["list_named_queries"]
955
953
  ) -> ListNamedQueriesPaginator:
956
954
  """
@@ -960,8 +958,8 @@ class AthenaClient(BaseClient):
960
958
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_paginator)
961
959
  """
962
960
 
963
- @overload
964
- def get_paginator(
961
+ @overload # type: ignore[override]
962
+ def get_paginator( # type: ignore[override]
965
963
  self, operation_name: Literal["list_query_executions"]
966
964
  ) -> ListQueryExecutionsPaginator:
967
965
  """
@@ -971,8 +969,8 @@ class AthenaClient(BaseClient):
971
969
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_paginator)
972
970
  """
973
971
 
974
- @overload
975
- def get_paginator(
972
+ @overload # type: ignore[override]
973
+ def get_paginator( # type: ignore[override]
976
974
  self, operation_name: Literal["list_table_metadata"]
977
975
  ) -> ListTableMetadataPaginator:
978
976
  """
@@ -982,8 +980,8 @@ class AthenaClient(BaseClient):
982
980
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_paginator)
983
981
  """
984
982
 
985
- @overload
986
- def get_paginator(
983
+ @overload # type: ignore[override]
984
+ def get_paginator( # type: ignore[override]
987
985
  self, operation_name: Literal["list_tags_for_resource"]
988
986
  ) -> ListTagsForResourcePaginator:
989
987
  """
@@ -1,7 +1,7 @@
1
1
  """
2
- Type annotations for athena service client.
2
+ Type annotations for athena service Client.
3
3
 
4
- [Open documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/)
4
+ [Documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/)
5
5
 
6
6
  Usage::
7
7
 
@@ -13,13 +13,17 @@ Usage::
13
13
  client: AthenaClient = session.client("athena")
14
14
  ```
15
15
 
16
- Copyright 2024 Vlad Emelianov
16
+ Copyright 2025 Vlad Emelianov
17
17
  """
18
18
 
19
+ from __future__ import annotations
20
+
19
21
  import sys
20
- from typing import Any, Dict, Mapping, Type, overload
22
+ from typing import Any, overload
21
23
 
22
24
  from botocore.client import BaseClient, ClientMeta
25
+ from botocore.errorfactory import BaseClientExceptions
26
+ from botocore.exceptions import ClientError as BotocoreClientError
23
27
 
24
28
  from .paginator import (
25
29
  GetQueryResultsPaginator,
@@ -149,6 +153,12 @@ from .type_defs import (
149
153
  UpdateWorkGroupInputRequestTypeDef,
150
154
  )
151
155
 
156
+ if sys.version_info >= (3, 9):
157
+ from builtins import dict as Dict
158
+ from builtins import type as Type
159
+ from collections.abc import Mapping
160
+ else:
161
+ from typing import Dict, Mapping, Type
152
162
  if sys.version_info >= (3, 12):
153
163
  from typing import Literal, Unpack
154
164
  else:
@@ -156,14 +166,7 @@ else:
156
166
 
157
167
  __all__ = ("AthenaClient",)
158
168
 
159
- class BotocoreClientError(Exception):
160
- MSG_TEMPLATE: str
161
-
162
- def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
163
- self.response: Dict[str, Any]
164
- self.operation_name: str
165
-
166
- class Exceptions:
169
+ class Exceptions(BaseClientExceptions):
167
170
  ClientError: Type[BotocoreClientError]
168
171
  InternalServerException: Type[BotocoreClientError]
169
172
  InvalidRequestException: Type[BotocoreClientError]
@@ -207,12 +210,6 @@ class AthenaClient(BaseClient):
207
210
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#generate_presigned_url)
208
211
  """
209
212
 
210
- def close(self) -> None:
211
- """
212
- [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena/client/close.html)
213
- [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#close)
214
- """
215
-
216
213
  def batch_get_named_query(
217
214
  self, **kwargs: Unpack[BatchGetNamedQueryInputRequestTypeDef]
218
215
  ) -> BatchGetNamedQueryOutputTypeDef:
@@ -914,8 +911,8 @@ class AthenaClient(BaseClient):
914
911
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#update_work_group)
915
912
  """
916
913
 
917
- @overload
918
- def get_paginator(
914
+ @overload # type: ignore[override]
915
+ def get_paginator( # type: ignore[override]
919
916
  self, operation_name: Literal["get_query_results"]
920
917
  ) -> GetQueryResultsPaginator:
921
918
  """
@@ -925,8 +922,8 @@ class AthenaClient(BaseClient):
925
922
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_paginator)
926
923
  """
927
924
 
928
- @overload
929
- def get_paginator(
925
+ @overload # type: ignore[override]
926
+ def get_paginator( # type: ignore[override]
930
927
  self, operation_name: Literal["list_data_catalogs"]
931
928
  ) -> ListDataCatalogsPaginator:
932
929
  """
@@ -936,8 +933,10 @@ class AthenaClient(BaseClient):
936
933
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_paginator)
937
934
  """
938
935
 
939
- @overload
940
- def get_paginator(self, operation_name: Literal["list_databases"]) -> ListDatabasesPaginator:
936
+ @overload # type: ignore[override]
937
+ def get_paginator( # type: ignore[override]
938
+ self, operation_name: Literal["list_databases"]
939
+ ) -> ListDatabasesPaginator:
941
940
  """
942
941
  Create a paginator for an operation.
943
942
 
@@ -945,8 +944,8 @@ class AthenaClient(BaseClient):
945
944
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_paginator)
946
945
  """
947
946
 
948
- @overload
949
- def get_paginator(
947
+ @overload # type: ignore[override]
948
+ def get_paginator( # type: ignore[override]
950
949
  self, operation_name: Literal["list_named_queries"]
951
950
  ) -> ListNamedQueriesPaginator:
952
951
  """
@@ -956,8 +955,8 @@ class AthenaClient(BaseClient):
956
955
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_paginator)
957
956
  """
958
957
 
959
- @overload
960
- def get_paginator(
958
+ @overload # type: ignore[override]
959
+ def get_paginator( # type: ignore[override]
961
960
  self, operation_name: Literal["list_query_executions"]
962
961
  ) -> ListQueryExecutionsPaginator:
963
962
  """
@@ -967,8 +966,8 @@ class AthenaClient(BaseClient):
967
966
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_paginator)
968
967
  """
969
968
 
970
- @overload
971
- def get_paginator(
969
+ @overload # type: ignore[override]
970
+ def get_paginator( # type: ignore[override]
972
971
  self, operation_name: Literal["list_table_metadata"]
973
972
  ) -> ListTableMetadataPaginator:
974
973
  """
@@ -978,8 +977,8 @@ class AthenaClient(BaseClient):
978
977
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_paginator)
979
978
  """
980
979
 
981
- @overload
982
- def get_paginator(
980
+ @overload # type: ignore[override]
981
+ def get_paginator( # type: ignore[override]
983
982
  self, operation_name: Literal["list_tags_for_resource"]
984
983
  ) -> ListTagsForResourcePaginator:
985
984
  """
@@ -1,7 +1,7 @@
1
1
  """
2
2
  Type annotations for athena service literal definitions.
3
3
 
4
- [Open documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/literals/)
4
+ [Documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/literals/)
5
5
 
6
6
  Usage::
7
7
 
@@ -11,7 +11,7 @@ Usage::
11
11
  data: AuthenticationTypeType = "DIRECTORY_IDENTITY"
12
12
  ```
13
13
 
14
- Copyright 2024 Vlad Emelianov
14
+ Copyright 2025 Vlad Emelianov
15
15
  """
16
16
 
17
17
  import sys
@@ -154,12 +154,15 @@ ServiceName = Literal[
154
154
  "b2bi",
155
155
  "backup",
156
156
  "backup-gateway",
157
+ "backupsearch",
157
158
  "batch",
158
159
  "bcm-data-exports",
159
160
  "bcm-pricing-calculator",
160
161
  "bedrock",
161
162
  "bedrock-agent",
162
163
  "bedrock-agent-runtime",
164
+ "bedrock-data-automation",
165
+ "bedrock-data-automation-runtime",
163
166
  "bedrock-runtime",
164
167
  "billing",
165
168
  "billingconductor",
@@ -556,6 +559,7 @@ RegionName = Literal[
556
559
  "ap-southeast-2",
557
560
  "ap-southeast-3",
558
561
  "ap-southeast-4",
562
+ "ap-southeast-5",
559
563
  "ca-central-1",
560
564
  "ca-west-1",
561
565
  "eu-central-1",
@@ -1,7 +1,7 @@
1
1
  """
2
2
  Type annotations for athena service literal definitions.
3
3
 
4
- [Open documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/literals/)
4
+ [Documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/literals/)
5
5
 
6
6
  Usage::
7
7
 
@@ -11,7 +11,7 @@ Usage::
11
11
  data: AuthenticationTypeType = "DIRECTORY_IDENTITY"
12
12
  ```
13
13
 
14
- Copyright 2024 Vlad Emelianov
14
+ Copyright 2025 Vlad Emelianov
15
15
  """
16
16
 
17
17
  import sys
@@ -152,12 +152,15 @@ ServiceName = Literal[
152
152
  "b2bi",
153
153
  "backup",
154
154
  "backup-gateway",
155
+ "backupsearch",
155
156
  "batch",
156
157
  "bcm-data-exports",
157
158
  "bcm-pricing-calculator",
158
159
  "bedrock",
159
160
  "bedrock-agent",
160
161
  "bedrock-agent-runtime",
162
+ "bedrock-data-automation",
163
+ "bedrock-data-automation-runtime",
161
164
  "bedrock-runtime",
162
165
  "billing",
163
166
  "billingconductor",
@@ -554,6 +557,7 @@ RegionName = Literal[
554
557
  "ap-southeast-2",
555
558
  "ap-southeast-3",
556
559
  "ap-southeast-4",
560
+ "ap-southeast-5",
557
561
  "ca-central-1",
558
562
  "ca-west-1",
559
563
  "eu-central-1",