types-aiobotocore provides PEP 561 compliant type annotations for the `aiobotocore` library, enabling static type checking for asynchronous AWS client interactions. It helps catch type-related errors before runtime and improves IDE autocompletion. The current version is 3.4.0, and new versions are released frequently, tied to updates in the `mypy-boto3-builder` and `aiobotocore` itself.
pip install types-aiobotocoreVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use `aiobotocore` to list S3 buckets. By installing `types-aiobotocore` (and potentially `types-aiobotocore-s3`), your static type checker (like MyPy) will understand the types of `session` and `client`, providing autocompletion and error checking without altering the runtime code. Note that `aiobotocore` itself must be installed.
Upgrade your Python environment to 3.9 or higher.
Ensure your type checker (e.g., MyPy) is up-to-date and correctly configured to discover PEP 561 stubs. Reinstalling the package might resolve issues.
Install service-specific type stub packages (`pip install types-aiobotocore-<service_name>`) for type checking related to individual AWS services.
Ensure you have `aiobotocore` installed via `pip install aiobotocore` alongside `types-aiobotocore`.