Skip to content

Commit fe7dd9f

Browse files
committed
Add ignored services, ignored sms-voice
1 parent c16c0e4 commit fe7dd9f

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

mypy_boto3_builder/main.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@
1111

1212
from mypy_boto3_builder.chat.chat_buddy import ChatBuddy
1313
from mypy_boto3_builder.cli_parser import CLINamespace, parse_args
14-
from mypy_boto3_builder.constants import (
15-
BUILDER_REPO_URL,
16-
OUTPUT_PATH_SENTINEL,
17-
PACKAGE_NAME,
18-
)
19-
from mypy_boto3_builder.enums.product import Product, ProductLibrary
14+
from mypy_boto3_builder.constants import BUILDER_REPO_URL, OUTPUT_PATH_SENTINEL, PACKAGE_NAME
15+
from mypy_boto3_builder.enums.product import Product
16+
from mypy_boto3_builder.enums.product_library import ProductLibrary
2017
from mypy_boto3_builder.enums.product_type import ProductType
2118
from mypy_boto3_builder.generators.aioboto3_generator import AioBoto3Generator
2219
from mypy_boto3_builder.generators.aiobotocore_generator import AioBotocoreGenerator

mypy_boto3_builder/service_name.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,12 @@ class ServiceNameCatalog:
191191
events.boto3_name: events,
192192
}
193193

194+
# Services that are outdated and no longer built
195+
# but still exist in the catalog.
196+
IGNORED_ITEMS: Final[set[str]] = {
197+
sms_voice.boto3_name,
198+
}
199+
194200
@classmethod
195201
def add(cls, name: str, class_name: str) -> ServiceName:
196202
"""

mypy_boto3_builder/type_maps/shape_type_map.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@
1212
from mypy_boto3_builder.type_annotations.fake_annotation import FakeAnnotation
1313
from mypy_boto3_builder.type_annotations.type import Type
1414
from mypy_boto3_builder.type_maps.named_unions import (
15-
AttributeValueTypeDef,
1615
BlobTypeDef,
1716
PolicyDocumentTypeDef,
1817
StreamingBodyType,
1918
TableAttributeValueTypeDef,
2019
TimestampTypeDef,
2120
UniversalAttributeValueTypeDef,
2221
)
23-
from mypy_boto3_builder.type_maps.typed_dicts import GetTemplateOutputTypeDef
22+
from mypy_boto3_builder.type_maps.typed_dicts import AttributeValueTypeDef, GetTemplateOutputTypeDef
2423
from mypy_boto3_builder.utils.lookup_dict import LookupDict
2524

2625
ShapeTypeMap = Mapping[ServiceName, Mapping[str, Mapping[str, FakeAnnotation]]]

mypy_boto3_builder/utils/boto3_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ def get_available_service_names() -> list[ServiceName]:
5757
available_services = session.get_available_services()
5858
result: list[ServiceName] = []
5959
for name in available_services:
60+
if name in ServiceNameCatalog.IGNORED_ITEMS:
61+
continue
6062
service_data = session.get_service_data(name)
6163
metadata = service_data["metadata"]
6264
class_name = get_botocore_class_name(metadata)

0 commit comments

Comments
 (0)