Registry /
type-stubs / types-aiobotocore-elbv2
Install & Compatibility
Where this runs
tested against v3.7.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 59.8MB
glibcpy 3.10–3.920 runs
installs and imports cleanly · install 6.0s · import 0.000s · 62MB
60MB installed
● package 60MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ELBv2Client
✓ from types_aiobotocore_elbv2.client import ELBv2Client
✗ from types_aiobotocore.elbv2 import ELBv2Client
Type stubs are organized by service within their own `types_aiobotocore_<service_name>` package, not as submodules of a main `types_aiobotocore` package.
DescribeLoadBalancersOutputTypeDef
✓ from types_aiobotocore_elbv2.type_defs import DescribeLoadBalancersOutputTypeDef
✗ from types_aiobotocore_elbv2.client import DescribeLoadBalancersOutputTypeDef
Type definitions for method inputs/outputs are typically found in the `type_defs` submodule, not directly in `client`.
This quickstart demonstrates how to instantiate an `aiobotocore` ELBv2 client and apply the `ELBv2Client` type hint for full static analysis support with `mypy` or similar tools. It retrieves a list of ELBv2 load balancers in the configured region.
import asyncio
from aiobotocore.session import get_session
from types_aiobotocore_elbv2.client import ELBv2Client
async def describe_elbv2_load_balancers():
session = get_session()
async with session.create_client("elbv2") as client:
# Explicitly type-hint the client for static analysis
elbv2_client: ELBv2Client = client
response = await elbv2_client.describe_load_balancers()
print(f"ELBv2 Load Balancers: {response.get('LoadBalancers')}")
if __name__ == "__main__":
asyncio.run(describe_elbv2_load_balancers())
Debug
Known issues
breakingSupport for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0. Users on Python 3.8 must upgrade their Python version to 3.9 or newer.fixUpgrade your Python environment to 3.9 or later.
affects: >=8.12.0 of mypy-boto3-builder generated packages
breakingType definition (TypeDef) argument names might have changed in `mypy-boto3-builder` version 8.9.0 for brevity (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`).fixReview your code for `TypeDef` names and adjust them according to the latest generated types. Mypy will highlight incorrect names.
affects: >=8.9.0 of mypy-boto3-builder generated packages
gotchaThis library provides *type annotations* only. `aiobotocore` (and optionally `boto3` if you mix async/sync operations) must be installed separately for the code to run at runtime.fixEnsure `pip install aiobotocore` is executed alongside `pip install types-aiobotocore-elbv2`.
affects: All versions
gotchaThe `mypy-boto3-builder` projects now use PEP 561 packaging. While this generally improves compatibility, ensure you are not relying on internal builder structures or non-standard import paths that might have changed.fixStick to documented public import paths (e.g., `types_aiobotocore_elbv2.client` or `types_aiobotocore_elbv2.type_defs`).
affects: >=8.12.0 of mypy-boto3-builder generated packages
Upgrade
Version history
3.7.0latest on PyPI · released May 10, 2026
Audit
Dependencies
aiobotocorerequiredRuntime dependency for the actual AWS service interaction. This package provides type stubs for aiobotocore.
typing-extensionsoptionalProvides backports of new `typing` features for older Python versions (e.g., `NotRequired`). Required for Python < 3.10.