{"id":22487,"library":"types-aiobotocore-ecr","title":"types-aiobotocore-ecr","description":"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.","status":"active","version":"3.5.0","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["type-annotations","aiobotocore","aws","ecr"],"install":[{"cmd":"pip install types-aiobotocore-ecr","lang":"bash","label":"install"}],"dependencies":[{"reason":"Runtime dependency; this package provides type annotations for aiobotocore","package":"aiobotocore","optional":false},{"reason":"Provides NotRequired, Required, etc. for TypeDicts","package":"typing-extensions","optional":false}],"imports":[{"note":"types-aiobotocore-ecr provides its own type stubs for the client","wrong":"from aiobotocore.client import ECRClient","symbol":"ECRClient","correct":"from types_aiobotocore_ecr import ECRClient"},{"note":"","wrong":"","symbol":"ECRServiceResource","correct":"from types_aiobotocore_ecr import ECRServiceResource"},{"note":"Literal types are re-exported from the top-level package, but direct import from typing is preferred","wrong":"from types_aiobotocore_ecr.literals import ...","symbol":"Literal","correct":"from typing import Literal"}],"quickstart":{"code":"import asyncio\nfrom types_aiobotocore_ecr import ECRClient\n\nasync def main():\n    session = ECRClient()\n    # This will fail because no AWS credentials are set\n    # It demonstrates the import and type checking works\n    print(type(session))\n\nasyncio.run(main())","lang":"python","description":"Import the ECRClient type stub. This code won't actually connect to AWS, it just shows the correct import pattern. To make real calls, you need to configure AWS credentials and use an aiobotocore session."},"warnings":[{"fix":"Upgrade to Python 3.9 or higher.","message":"Version 8.12.0 of mypy-boto3-builder (which generates this package) drops Python 3.8 support. Ensure your environment uses Python >=3.9.","severity":"breaking","affected_versions":">=3.5.0"},{"fix":"Match the aiobotocore version to the one expected by this package (aiobotocore ~= 2.19.0).","message":"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.","severity":"breaking","affected_versions":"3.5.0"},{"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.","message":"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.","severity":"gotcha","affected_versions":"all"},{"fix":"Check the actual type stubs in the package for Paginator/Waiter classes.","message":"The `paginator` and `waiter` classes may not have full type coverage. Review types for these before using in production.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run `pip install types-aiobotocore-ecr` and ensure import is `from types_aiobotocore_ecr import ECRClient`.","cause":"Incorrect import path or missing package installation.","error":"Module 'types_aiobotocore_ecr' has no attribute 'ECRClient'"},{"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.","cause":"IDE unable to locate the stub file for the client.","error":"Cannot find reference 'ECRClient' in '__init__.pyi'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}