mypy-boto3-bcm-data-exports provides a set of type annotations for the `boto3` AWS SDK, specifically for the Billing and Cost Management Data Exports (BCM Data Exports) service. These annotations enhance code completion, static analysis, and type checking for `boto3` users with tools like MyPy, VSCode, and PyCharm. The library is currently at version 1.42.77 and is released frequently, typically in sync with `boto3` and `botocore` updates.
pip install mypy-boto3-bcm-data-exportsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize a `bcm-data-exports` client using `boto3` and explicitly annotate it with the `BCMDataExportsClient` type from `mypy-boto3-bcm-data-exports` for enhanced type checking and IDE support. It includes a basic example of calling `list_exports`.
Upgrade your Python environment to 3.9 or higher. If not possible, pin `mypy-boto3-bcm-data-exports` to a version older than 8.12.0 (e.g., `mypy-boto3-bcm-data-exports<8.12.0`).
Ensure your type checker (e.g., MyPy) is up-to-date. In most cases, this change is transparent, but if issues arise, check your `mypy` configuration for `mypy_path` or similar settings that might conflict with `py.typed` discovery.
Review your code for direct imports of `mypy_boto3_bcm_data_exports.type_defs` and update `TypedDict` names to match the new conventions as indicated by your type checker.
Always explicitly annotate your `boto3` client and resource variables with the imported `Client` or `ServiceResource` types (e.g., `client: BCMDataExportsClient = boto3.client(...)`).
Ensure `pip install boto3` is part of your project's dependencies.
Regularly update both `boto3` and its corresponding `mypy-boto3-*` stub packages. Consider using `pip install 'boto3-stubs[bcm-data-exports]'` which often manages this synchronization.