{"id":22485,"library":"types-aiobotocore-batch","title":"types-aiobotocore-batch","description":"Type annotations for aiobotocore Batch 3.5.0 service, generated with mypy-boto3-builder 8.12.0. Provides static typing for AWS Batch operations via aiobotocore. Current version is 3.5.0, released as part of mypy_boto3_builder releases.","status":"active","version":"3.5.0","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["type-annotations","stubs","aiobotocore","aws","batch","mypy"],"install":[{"cmd":"pip install types-aiobotocore-batch","lang":"bash","label":"pip install"}],"dependencies":[{"reason":"Runtime dependency for asynchronous AWS SDK operations.","package":"aiobotocore","optional":false},{"reason":"Required for Python <3.9 compatibility.","package":"typing-extensions","optional":false}],"imports":[{"note":"Client class is re-exported from the top-level package.","wrong":"from types_aiobotocore_batch.client import BatchClient","symbol":"BatchClient","correct":"from types_aiobotocore_batch import BatchClient"}],"quickstart":{"code":"import asyncio\nfrom types_aiobotocore_batch import BatchClient\nfrom aiobotocore.session import get_session\n\nasync def main():\n    session = get_session()\n    async with session.create_client('batch', region_name='us-east-1') as client:\n        response = await client.describe_compute_environments()\n        print(response)\n\nasyncio.run(main())","lang":"python","description":"Minimal async example using aiobotocore session to call Batch API with type hints."},"warnings":[{"fix":"Update your type annotations to use the new shorter TypeDef names.","message":"Version 8.9.0 of mypy_boto3_builder introduced a breaking change: TypeDefs for packed method arguments now use shorter names (e.g., CreateDistributionRequestRequestTypeDef -> CreateDistributionRequestTypeDef). This may cause type-checking errors if you were using the longer names.","severity":"breaking","affected_versions":">=2.9.0 built with builder >=8.9.0"},{"fix":"Consult AWS Batch API reference for current status.","message":"This package provides type stubs for aiobotocore Batch. The underlying service documentation may mark some operations as deprecated. Always check the official AWS Batch documentation for deprecation notices.","severity":"deprecated","affected_versions":"all"},{"fix":"Use `types_aiobotocore_batch` (underscores) in import statements.","message":"The import path for the client is from `types_aiobotocore_batch` (with underscore), not `types-aiobotocore-batch` (hyphen). Using the hyphenated name in an import will cause ModuleNotFoundError.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use `import types_aiobotocore_batch` (underscores).","cause":"Attempting to import using the package name with hyphens instead of underscores.","error":"ModuleNotFoundError: No module named 'types-aiobotocore-batch'"},{"fix":"Ensure you have installed the package (`pip install types-aiobotocore-batch`). Then import using `from types_aiobotocore_batch import BatchClient`.","cause":"The package may not be installed or the client class is not in the top-level namespace.","error":"AttributeError: module 'types_aiobotocore_batch' has no attribute 'BatchClient'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}