types-aiobotocore-ecr
raw JSON → 3.5.0 verified Mon Apr 27 auth: no python
Type annotations for aiobotocore ECR (Amazon Elastic Container Registry) service, generated with mypy-boto3-builder. Version 3.5.0 corresponds to aiobotocore 2.19.0 and botocore 1.37.0. Packages are released weekly with each new botocore release.
pip install types-aiobotocore-ecr Common errors
error Module 'types_aiobotocore_ecr' has no attribute 'ECRClient' ↓
cause Incorrect import path or missing package installation.
fix
Run
pip install types-aiobotocore-ecr and ensure import is from types_aiobotocore_ecr import ECRClient. error Cannot find reference 'ECRClient' in '__init__.pyi' ↓
cause IDE unable to locate the stub file for the client.
fix
Ensure
types-aiobotocore-ecr is installed in the same Python environment as aiobotocore. The stub files are automatically used by type checkers when aiobotocore is installed. Warnings
breaking Version 8.12.0 of mypy-boto3-builder (which generates this package) drops Python 3.8 support. Ensure your environment uses Python >=3.9. ↓
fix Upgrade to Python 3.9 or higher.
breaking Version 3.5.0 of types-aiobotocore-ecr is pinned to aiobotocore 2.19.0. Using it with a different version of aiobotocore may cause type-checking errors or runtime mismatches. ↓
fix Match the aiobotocore version to the one expected by this package (aiobotocore ~= 2.19.0).
gotcha Do NOT install both `types-aiobotocore` (the master metapackage) and `types-aiobotocore-ecr` separately. They can conflict. Either use the master package for all services or install individual service packages. ↓
fix Use `types-aiobotocore` for full annotation coverage, or pick individual `types-aiobotocore-*` packages for specific services. Remove one of them if both are installed.
deprecated The `paginator` and `waiter` classes may not have full type coverage. Review types for these before using in production. ↓
fix Check the actual type stubs in the package for Paginator/Waiter classes.
Imports
- ECRClient wrong
from aiobotocore.client import ECRClientcorrectfrom types_aiobotocore_ecr import ECRClient - ECRServiceResource
from types_aiobotocore_ecr import ECRServiceResource - Literal wrong
from types_aiobotocore_ecr.literals import ...correctfrom typing import Literal
Quickstart
import asyncio
from types_aiobotocore_ecr import ECRClient
async def main():
session = ECRClient()
# This will fail because no AWS credentials are set
# It demonstrates the import and type checking works
print(type(session))
asyncio.run(main())