types-aiobotocore-sagemaker
raw JSON → 3.5.0 verified Fri May 01 auth: no python
Type annotations for aiobotocore SageMaker 3.5.0 service generated with mypy-boto3-builder 8.12.0. Provides static type checking support for SageMaker operations using aiobotocore. Current version 3.5.0. Released as needed with aiobotocore updates.
pip install types-aiobotocore-sagemaker Common errors
error ModuleNotFoundError: No module named 'types_aiobotocore_sagemaker' ↓
cause Package not installed.
fix
Run
pip install types-aiobotocore-sagemaker. error Cannot find reference 'SageMakerClient' in '__init__.py' ↓
cause IDE or type checker not configured for stub packages.
fix
Ensure the package is installed and your type checker supports PEP 561. For mypy, install
mypy and run mypy --install-types. Warnings
breaking PEP 561 migration in builder 8.12.0: Package now uses PEP 561 compliant packaging; ensure your type checker supports this. ↓
fix Update mypy to >=1.0 or use pyright.
breaking Python 3.8 support dropped in builder 8.12.0 (types-aiobotocore-sagemaker 3.5.0). Requires Python >=3.9. ↓
fix Upgrade to Python 3.9+.
gotcha This package is a stub-only package, not a runtime dependency. It should be conditionally installed or used only for type checking. ↓
fix Install with `pip install types-aiobotocore-sagemaker` as a dev dependency; do not import at runtime.
Imports
- SageMakerClient
from types_aiobotocore_sagemaker import SageMakerClient
Quickstart
import aiobotocore.session
from types_aiobotocore_sagemaker import SageMakerClient
async def main():
session = aiobotocore.session.get_session()
async with session.create_client('sagemaker', region_name='us-east-1') as client:
# client is type-checked as SageMakerClient
response = await client.list_models()
print(response)