Registry /
type-stubs / mypy-boto3-bcm-dashboards
Install & Compatibility
Where this runs
tested against v1.43.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.594s · 51.9MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.7s · import 0.560s · 52MB
50MB installed
● package 50MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
BillingandCostManagementDashboardsClient
✓ from mypy_boto3_bcm_dashboards.client import BillingandCostManagementDashboardsClient
✗ from mypy_boto3_bcm_dashboards import BillingandCostManagementDashboardsClient
Client types are specifically located in the `.client` submodule.
Client
✓ from boto3.session import Session
bcm_client: BillingandCostManagementDashboardsClient = Session().client('billing-cost-management-dashboards')
✗ bcm_client: Client = boto3.client('billing-cost-management-dashboards')
Directly annotating with `boto3.client` results in `Any` or incomplete type information. Always use the specific generated stub client type for full type safety.
Demonstrates how to initialize a `boto3` client and type-hint it with `mypy-boto3-bcm-dashboards` for static analysis. This allows `mypy` to verify the client's methods and parameters.
import boto3
from mypy_boto3_bcm_dashboards.client import BillingandCostManagementDashboardsClient
from typing import List, Dict, Any
def get_dashboards(client: BillingandCostManagementDashboardsClient) -> List[Dict[str, Any]]:
try:
response = client.list_dashboards(
MaxResults=10
)
return response.get('Dashboards', [])
except client.exceptions.ResourceNotFoundException:
print("No dashboards found.")
return []
except Exception as e:
print(f"An error occurred: {e}")
return []
if __name__ == '__main__':
# Example usage with boto3 client
bcm_client: BillingandCostManagementDashboardsClient = boto3.client('billing-cost-management-dashboards')
dashboards = get_dashboards(bcm_client)
print(f"Found {len(dashboards)} dashboards.")
# This code can now be type-checked by mypy for correct API usage
Debug
Known issues
breakingSupport for Python 3.8 has been removed in `mypy-boto3-builder` version 8.12.0. Users on Python 3.8 must upgrade to Python 3.9 or newer to continue receiving updates and fixes for `mypy-boto3` stubs.fixUpgrade your Python environment to 3.9 or higher.
affects: >=8.12.0 (builder)
breakingThe `mypy-boto3` builder migrated all packages to PEP 561 compliance in version 8.12.0. While this improves packaging and type checker compatibility, it might affect custom packaging setups or older environments. Ensure your `pip` and `setuptools` are up-to-date.fixEnsure `pip` and `setuptools` are updated (`pip install --upgrade pip setuptools`). Check your `mypy` configuration if issues persist.
affects: >=8.12.0 (builder)
breakingIn `mypy-boto3-builder` version 8.9.0, TypeDef names for packed method arguments were shortened (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`). If your code explicitly references these types, you may need to update their names.fixReview and update explicit TypeDef references in your code to match the new, shorter names.
affects: >=8.9.0 (builder)
gotchaThe installed package name `mypy-boto3-bcm-dashboards` uses hyphens, but the Python import path uses underscores (`mypy_boto3_bcm_dashboards`). Always use underscores in your import statements.fixUse `import mypy_boto3_bcm_dashboards` (or submodules) in your Python code.
affects: All
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides runtime functionality for AWS SDK calls, which these stubs type-check.
mypyoptionalThe static type checker that utilizes these stubs for type validation.