{"id":3691,"library":"mypy-boto3-rtbfabric","title":"mypy-boto3 Type Stubs for RTBFabric","description":"mypy-boto3-rtbfabric provides type annotations for the `boto3` RTBFabric service, enabling static type checking for AWS SDK operations. It is generated by the `mypy-boto3-builder` project. The current version is 1.42.88, with frequent releases often multiple times a month, synchronized with upstream `boto3` API changes and `mypy-boto3-builder` updates.","status":"active","version":"1.42.88","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["boto3","mypy","type-stubs","aws","cloud","type-checking"],"install":[{"cmd":"pip install mypy-boto3-rtbfabric boto3","lang":"bash","label":"Install with boto3"},{"cmd":"pip install mypy-boto3-rtbfabric","lang":"bash","label":"Install stubs only"}],"dependencies":[{"reason":"Runtime dependency for AWS SDK functionality. mypy-boto3-rtbfabric only provides type stubs.","package":"boto3","optional":false},{"reason":"Development dependency for static type checking.","package":"mypy","optional":true}],"imports":[{"symbol":"RTBFabricClient","correct":"from mypy_boto3_rtbfabric import RTBFabricClient"},{"note":"Type definitions are typically imported from the `type_defs` submodule.","symbol":"ListProfilesResponseTypeDef","correct":"from mypy_boto3_rtbfabric.type_defs import ListProfilesResponseTypeDef"},{"note":"Paginator types are imported from the `paginator` submodule.","symbol":"ListProfilesPaginator","correct":"from mypy_boto3_rtbfabric.paginator import ListProfilesPaginator"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_rtbfabric import RTBFabricClient\nfrom mypy_boto3_rtbfabric.type_defs import ResponseMetadataTypeDef # Using a common base TypeDef for demo\n\n# Initialize the boto3 client with type hints\n# The 'rtbfabric' service might be an internal or less common AWS service.\n# Replace with your actual service details and methods if available.\nclient: RTBFabricClient = boto3.client(\"rtbfabric\")\n\n# Call a hypothetical API method and type-hint its response.\n# This demonstrates how type stubs enable static analysis for your boto3 calls.\nprint(\"Attempting to call a hypothetical RTBFabric method (e.g., list_profiles)...\")\ntry:\n    # Actual method names and TypeDefs depend on the RTBFabric service API.\n    # Using get_paginator('list_profiles') as a plausible example of stub interaction.\n    paginator = client.get_paginator(\"list_profiles\")\n    # The paginate() method typically returns a generator of response dicts.\n    # For simplicity, we'll just demonstrate the client's type-hinted methods.\n    response_meta: ResponseMetadataTypeDef = client.list_tags_for_resource(ResourceArn=\"dummy-arn\")[\"ResponseMetadata\"]\n    print(f\"Successfully interacted with RTBFabric client. Status Code: {response_meta['HTTPStatusCode']}\")\nexcept client.exceptions.RTBFabricException as e:\n    print(f\"RTBFabric specific exception caught: {e} (Expected if service is not configured or method is unknown).\")\nexcept Exception as e:\n    print(f\"Generic exception caught: {e} (Expected if service or method is unavailable).\")\n\nprint(\"\\nClient methods available (demonstration of type-hinted access):\")\n# dir(client) will show many methods, demonstrating the stubs are active\nprint(f\"Client methods (first 5): {dir(client)[10:15]}\")","lang":"python","description":"This quickstart demonstrates how to initialize a `boto3` client for the `rtbfabric` service with type hints from `mypy-boto3-rtbfabric`. It shows how to use the `RTBFabricClient` type and how `type_defs` can be imported for response objects. Note that RTBFabric might be a niche AWS service, so specific method calls might vary; the example uses a common pattern to illustrate type stub usage."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or a newer version.","message":"Starting with `mypy-boto3-builder` version 8.12.0 (and consequently `mypy-boto3` packages), Python 3.8 is no longer supported. Ensure your project uses Python 3.9 or newer.","severity":"breaking","affected_versions":">=8.12.0 (builder)"},{"fix":"Review and update `TypeDef` names in your codebase according to the new conventions. Consult the `mypy-boto3` documentation or regenerate your code if you relied on these specific `TypeDef` names.","message":"In `mypy-boto3-builder` version 8.9.0, there were breaking changes to `TypeDef` naming conventions. Request type definitions became shorter (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`), and `Extra` postfixes moved to the end (e.g., `CreateDistributionExtraRequestTypeDef` -> `CreateDistributionRequestExtraTypeDef`). This might affect custom type hints based on older `TypeDef` names.","severity":"breaking","affected_versions":">=8.9.0 (builder)"},{"fix":"Always install `boto3` alongside `mypy-boto3-rtbfabric` using `pip install boto3 mypy-boto3-rtbfabric`.","message":"This package (`mypy-boto3-rtbfabric`) provides only type stubs. It does not include the actual `boto3` runtime library. You must install `boto3` separately for your application to function at runtime.","severity":"gotcha","affected_versions":"*"},{"fix":"Install `mypy` (`pip install mypy`) and integrate it into your build or CI process. Run `mypy your_module.py` to check for type errors.","message":"To benefit from these type stubs, you need a static type checker like `mypy` configured in your development environment. Without running a type checker, the stubs have no effect on runtime behavior.","severity":"gotcha","affected_versions":"*"},{"fix":"If you were using `sms-voice`, switch to the `pinpoint-sms-voice` service and its corresponding `mypy-boto3-pinpoint-sms-voice` stubs.","message":"The `sms-voice` service was deprecated and removed from `mypy-boto3` (and `boto3`) starting with builder version 8.11.0. Users should migrate to the `pinpoint-sms-voice` service instead.","severity":"deprecated","affected_versions":">=8.11.0 (builder)"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}