{"id":3558,"library":"mypy-boto3-arc-region-switch","title":"mypy-boto3-arc-region-switch Type Stubs","description":"This library provides type annotations (stubs) for the `boto3` ARCRegionswitch service client, generated with `mypy-boto3-builder`. It enhances development experience by enabling static type checking for `boto3` code. The current version is 1.42.59, and it is actively maintained with frequent updates tied to `boto3` releases and `mypy-boto3-builder` improvements.","status":"active","version":"1.42.59","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["boto3","aws","mypy","typing","type-stubs","arc-regionswitch"],"install":[{"cmd":"pip install mypy-boto3-arc-region-switch boto3","lang":"bash","label":"Install type stubs and boto3"}],"dependencies":[{"reason":"Required at runtime; this package only provides type stubs.","package":"boto3","optional":false},{"reason":"Used for compatibility with older Python versions where `typing` features are backported.","package":"typing-extensions","optional":true}],"imports":[{"note":"Type stubs are imported from the specific `mypy-boto3` package, not directly from `boto3`.","wrong":"from boto3.client import ARCRegionswitchClient","symbol":"ARCRegionswitchClient","correct":"from mypy_boto3_arc_region_switch.client import ARCRegionswitchClient"},{"note":"Service name literals for type hinting are available in type_defs.","symbol":"ARCRegionswitchServiceName","correct":"from mypy_boto3_arc_region_switch.type_defs import ARCRegionswitchServiceName"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_arc_region_switch.client import ARCRegionswitchClient\n\ndef check_arc_config(client: ARCRegionswitchClient) -> None:\n    try:\n        # Example operation for ARCRegionswitch service\n        response = client.get_arc_regionswitch_configuration()\n        print(f\"ARCRegionswitch configuration: {response}\")\n    except Exception as e:\n        print(f\"Error getting ARCRegionswitch configuration: {e}\")\n\nif __name__ == '__main__':\n    # The actual client must be created from boto3\n    # Ensure AWS credentials are configured (e.g., via AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY env vars)\n    arc_client: ARCRegionswitchClient = boto3.client(\n        'arc-regionswitch', \n        region_name=os.environ.get('AWS_REGION', 'us-east-1')\n    )\n    check_arc_config(arc_client)\n","lang":"python","description":"This example demonstrates how to initialize a `boto3` client and use the `ARCRegionswitchClient` type annotation for improved type checking with `mypy`."},"warnings":[{"fix":"Upgrade your Python interpreter to version 3.9 or newer.","message":"Starting with `mypy-boto3-builder` version 8.12.0, support for Python 3.8 has been removed. If you are using generated stubs from this builder version or newer, you must upgrade your Python environment to 3.9 or higher.","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.12.0"},{"fix":"Ensure `boto3` is installed in your environment: `pip install boto3`.","message":"This package (`mypy-boto3-arc-region-switch`) provides only type stubs. For your application to run, you must install the `boto3` library separately. These stubs are used by static analysis tools like `mypy` for type checking, not for runtime execution.","severity":"gotcha","affected_versions":"All"},{"fix":"Review your explicit TypeDef imports and references, updating names according to the new conventions (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`).","message":"TypeDef naming conventions were changed in `mypy-boto3-builder` 8.9.0. Specifically, packed method arguments and conflicting TypeDefs might have shorter names or 'Extra' postfix moved. If your code explicitly imports or references generated TypeDefs, these changes could introduce type errors.","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.9.0"},{"fix":"Keep your `mypy-boto3-*` packages and `boto3` up to date and in sync. Consider using a `requirements.txt` with pinned versions.","message":"For the most accurate type checking, ensure that the version of your `mypy-boto3-*` stubs closely matches your installed `boto3` version. Significant version mismatches can lead to incorrect type errors or missed type checks, as service APIs evolve.","severity":"gotcha","affected_versions":"All"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}