{"id":24753,"library":"types-aiobotocore-iot","title":"Type annotations for aiobotocore IoT","description":"Provides type annotations for the IoT service in aiobotocore. Version 3.5.0 corresponds to aiobotocore 3.5.0 service. Generated by mypy-boto3-builder. Supports Python >=3.9. Released on demand when new aiobotocore versions are published.","status":"active","version":"3.5.0","language":"python","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["types","aiobotocore","iot","mypy","stubs"],"install":[{"cmd":"pip install types-aiobotocore-iot","lang":"bash","label":"Install package"}],"dependencies":[],"imports":[{"note":"Correct import for the async client type","symbol":"IoTClient","correct":"from types_aiobotocore_iot import IoTClient"}],"quickstart":{"code":"import asyncio\nfrom types_aiobotocore_iot import IoTClient\n\nasync def main():\n    # Example usage: type checking with aiobotocore\n    from aiobotocore.session import get_session\n    session = get_session()\n    async with session.create_client('iot', region_name='us-east-1') as client:\n        # client is inferred as IoTClient\n        resp = await client.list_things()\n        print(resp)\n\nasyncio.run(main())","lang":"python","description":"Minimal example using IoTClient type with aiobotocore."},"warnings":[{"fix":"Ensure `pip install types-aiobotocore-iot==your.aiobotocore.version`.","message":"Version mismatch: types-aiobotocore-iot version must match your aiobotocore IoT service version (e.g., 3.5.0 for aiobotocore 3.5.0). Breaking changes can occur if versions differ.","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Install `boto3-stubs` as a dev dependency: `pip install boto3-stubs` or use a mypy plugin.","message":"Mypy may report missing imports if `boto3-stubs` is not installed. These types are defined in a stub-only package without runtime code.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Restart IDE or run `pip install types-aiobotocore-iot --upgrade --no-cache-dir`.","cause":"IDE not picking up installed stub package; often due to missing `__init__.pyi` or cache issues.","error":"Cannot find reference 'IoTClient' in 'types_aiobotocore_iot'"},{"fix":"Install the correct package: `pip install types-aiobotocore-iot`.","cause":"Version mismatch: installed package is for a different service (e.g., types-aiobotocore-s3 instead of types-aiobotocore-iot).","error":"Module 'types_aiobotocore_iot' has no attribute 'IoTClient'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}