types-aiobotocore-identitystore
raw JSON → 3.5.0 verified Fri May 01 auth: no python
Type annotations for aiobotocore IdentityStore service, generated by mypy-boto3-builder. Version 3.5.0 supports Python >=3.9 and is compatible with aiobotocore 3.5.x. These stubs enable static type checking and auto-completion for boto3/aiobotocore IdentityStore operations.
pip install types-aiobotocore[identitystore] Common errors
error ModuleNotFoundError: No module named 'types_aiobotocore_identitystore' ↓
cause The package is not installed or is installed for a different Python environment.
fix
Run
pip install types-aiobotocore-identitystore or add it to your requirements.txt. error ImportError: cannot import name 'get_service_model' from 'types_aiobotocore_identitystore' ↓
cause The function is not directly re-exported from the stubs package; it lives in the parent `mypy_boto3_identitystore` module.
fix
Use
from mypy_boto3_identitystore import get_service_model instead. error AttributeError: 'AioBaseClient' object has no attribute 'list_groups' ↓
cause The stubs are not applied or the installed version of the stubs does not match the aiobotocore version.
fix
Ensure types-aiobotocore-identitystore version matches aiobotocore version. Run
pip install 'types-aiobotocore[identitystore]' to get matching stubs. Warnings
breaking Python 3.8 support dropped in version 8.12.0. If your project uses Python 3.8, pin to versions <=3.5.0.post1. ↓
fix Upgrade to Python >=3.9 or pin types-aiobotocore-identitystore to <8.12.0 (e.g., 3.5.0.post1).
deprecated In version 8.9.0, some TypeDef names were shortened (breaking change). For example, CreateDistributionRequestRequestTypeDef became CreateDistributionRequestTypeDef. If you rely on exact TypeDef names, update your imports. ↓
fix Use the new TypeDef names or check the parent package's changelog for affected types.
gotcha Do not import types directly from `types_aiobotocore_identitystore`. The package only provides stubs for the `aiobotocore` client; import the actual client from `aiobotocore.client` and annotate with `AioBaseClient`. ↓
fix Use `from aiobotocore.client import AioBaseClient as IdentityStoreClient` for type hints.
Install
pip install types-aiobotocore-identitystore Imports
- IdentityStoreClient wrong
from types_aiobotocore_identitystore import IdentityStoreClientcorrectfrom aiobotocore.client import AioBaseClient - get_service_model wrong
from types_aiobotocore_identitystore import get_service_modelcorrectfrom mypy_boto3_identitystore import get_service_model
Quickstart
import asyncio
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from aiobotocore.client import AioBaseClient as IdentityStoreClient
async def main() -> None:
session = ... # your aiobotocore session
async with session.create_client('identitystore') as client:
# client is now type-checked
result = await client.list_groups(IdentityStoreId='d-12345')
print(result)
asyncio.run(main())