{"id":3618,"library":"mypy-boto3-lookoutequipment","title":"mypy-boto3-lookoutequipment","description":"mypy-boto3-lookoutequipment provides type annotations for the `boto3` AWS SDK's LookoutEquipment service, ensuring static type checking with tools like `mypy`. This enhances code quality, improves developer experience with IDE autocompletion, and helps catch potential bugs before runtime. The package is generated by `mypy-boto3-builder 8.12.0` and follows the `boto3` versioning for its type stubs, with frequent updates to align with new `boto3` releases.","status":"active","version":"1.42.3","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["aws","boto3","mypy","type-hints","stubs","lookoutequipment","static-analysis","typing"],"install":[{"cmd":"pip install mypy-boto3-lookoutequipment","lang":"bash","label":"Standalone package"},{"cmd":"pip install 'boto3-stubs[lookoutequipment]'","lang":"bash","label":"As part of boto3-stubs (recommended)"}],"dependencies":[{"reason":"Provides runtime functionality for which these stubs offer type hints.","package":"boto3"},{"reason":"Requires Python 3.9 or higher due to removal of Python 3.8 support in builder v8.12.0.","package":"python","version":">=3.9"}],"imports":[{"note":"Required for explicit type annotation of the boto3 client object.","symbol":"LookoutEquipmentClient","correct":"from mypy_boto3_lookoutequipment.client import LookoutEquipmentClient"},{"note":"Required for explicit type annotation of method response dictionaries.","symbol":"CreateDatasetResponseTypeDef","correct":"from mypy_boto3_lookoutequipment.type_defs import CreateDatasetResponseTypeDef"},{"note":"While implicit typing often works for `mypy`, explicit type annotation (`client: LookoutEquipmentClient = ...`) is recommended for full IDE support (e.g., VSCode) and clearer code.","wrong":"client = boto3.client('lookoutequipment')","symbol":"boto3.client('lookoutequipment')","correct":"import boto3\nclient: LookoutEquipmentClient = boto3.client('lookoutequipment')"}],"quickstart":{"code":"import boto3\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n    from mypy_boto3_lookoutequipment.client import LookoutEquipmentClient\n    from mypy_boto3_lookoutequipment.type_defs import ListDatasetsResponseTypeDef\n\n\ndef list_lookout_equipment_datasets() -> 'ListDatasetsResponseTypeDef':\n    \"\"\"Lists LookoutEquipment datasets and returns a typed response.\"\"\"\n    # boto3 client is dynamically typed, mypy-boto3 provides static types\n    client: LookoutEquipmentClient = boto3.client(\"lookoutequipment\")\n\n    # The response is automatically typed by mypy-boto3\n    response = client.list_datasets()\n    print(f\"Found {len(response['DatasetSummaries'])} datasets.\")\n    return response\n\nif __name__ == \"__main__\":\n    # Example usage (requires AWS credentials configured)\n    try:\n        datasets = list_lookout_equipment_datasets()\n        for dataset in datasets.get('DatasetSummaries', []):\n            print(f\"- Dataset ARN: {dataset['DatasetArn']}, Name: {dataset['DatasetName']}\")\n    except Exception as e:\n        print(f\"Error listing datasets: {e}\")\n        print(\"Please ensure AWS credentials are configured (e.g., AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION_NAME environment variables).\")\n","lang":"python","description":"This quickstart demonstrates how to use `mypy-boto3-lookoutequipment` to get type hints for the `boto3` LookoutEquipment client and its responses. It explicitly imports `LookoutEquipmentClient` for client annotation and `ListDatasetsResponseTypeDef` for response typing, ensuring static analysis can fully leverage the provided stubs. The `TYPE_CHECKING` block prevents runtime dependency on the stub package."},"warnings":[{"fix":"Upgrade Python environment to 3.9 or newer. Alternatively, pin `mypy-boto3-lookoutequipment` to a version compatible with Python 3.8 (e.g., `<1.42.3`).","message":"Support for Python 3.8 was removed with `mypy-boto3-builder` version 8.12.0. Projects using Python 3.8 will need to upgrade their Python version or pin to an older `mypy-boto3-lookoutequipment` version.","severity":"breaking","affected_versions":"mypy-boto3-builder >=8.12.0, mypy-boto3-lookoutequipment >=1.42.3"},{"fix":"Ensure `mypy` is up-to-date. If issues persist, refer to the `mypy-boto3` documentation on PEP 561 compatibility and stub discovery.","message":"The `mypy-boto3-builder` (and thus generated packages) migrated to PEP 561-compliant distribution. While this generally improves compatibility with `mypy`, some non-standard build setups or older `mypy` versions might require adjustments to properly discover the stubs.","severity":"breaking","affected_versions":"mypy-boto3-builder >=8.12.0, mypy-boto3-lookoutequipment >=1.42.3"},{"fix":"Update your explicit TypeDef imports and usage in code to reflect the new naming conventions as suggested by your IDE or `mypy`.","message":"TypeDef naming conventions changed in `mypy-boto3-builder` 8.9.0. TypeDefs for packed method arguments may use shorter names, and 'Extra' postfixes were moved. This can cause type-checking errors if you explicitly imported and used these TypeDefs in previous versions.","severity":"breaking","affected_versions":"mypy-boto3-builder >=8.9.0, mypy-boto3-lookoutequipment >=1.42.3"},{"fix":"For PyCharm, consider installing `boto3-stubs-lite` (e.g., `pip install 'boto3-stubs-lite[lookoutequipment]'`) and explicitly annotating all types. Alternatively, disable PyCharm's internal type checker and rely solely on `mypy` or `pyright`.","message":"PyCharm users might experience slow performance with Literal overloads when using the full `boto3-stubs` package. `boto3-stubs-lite` is recommended as a workaround, though it requires more explicit type annotations.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Ensure `pip install boto3` is executed and AWS credentials (e.g., `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_REGION_NAME` environment variables or `~/.aws/credentials` file) are correctly set up.","message":"This package only provides type annotations. The actual `boto3` library must be installed and correctly configured with AWS credentials for the code to run successfully at runtime.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}