from typing import Any import boto3 REGION = "us-east-1" def make_boto_client(service_name: str) -> Any: """Construct a boto3 client typed as ``Any``. boto3's overloaded ``client`` signature uses ``Literal[...]`` per service in the installed stubs, which forces every call site to satisfy ``reportArgumentType`` and ``reportUnknownMemberType`` under strict pyright. Centralising the cast keeps each test file clean. """ factory: Any = boto3.client # pyright: ignore[reportUnknownMemberType, reportUnknownVariableType] return factory(service_name, region_name=REGION)