{"id":3616,"library":"mypy-boto3-license-manager-linux-subscriptions","title":"mypy-boto3-license-manager-linux-subscriptions type stubs","description":"This library provides PEP 561 type annotations for the `boto3` AWS LicenseManagerLinuxSubscriptions service. It enables static type checking tools like MyPy to validate code interacting with this specific AWS service, catching potential errors at development time. The current version is 1.42.3, generated by `mypy-boto3-builder` 8.12.0, with frequent updates aligned with `boto3` releases and `mypy-boto3-builder` enhancements.","status":"active","version":"1.42.3","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["boto3","aws","typing","mypy","type-stubs","license-manager-linux-subscriptions"],"install":[{"cmd":"pip install mypy-boto3-license-manager-linux-subscriptions","lang":"bash","label":"Install service stubs"},{"cmd":"pip install boto3","lang":"bash","label":"Install boto3 (runtime dependency)"}],"dependencies":[{"reason":"This package provides type stubs; `boto3` itself is required for actual runtime execution.","package":"boto3","optional":false}],"imports":[{"symbol":"Client","correct":"from mypy_boto3_license_manager_linux_subscriptions import Client"},{"symbol":"LicenseManagerLinuxSubscriptionsClient","correct":"from mypy_boto3_license_manager_linux_subscriptions.client import LicenseManagerLinuxSubscriptionsClient"},{"note":"Example for importing a specific TypeDef for detailed annotations.","symbol":"GetServiceSettingsResponseTypeDef","correct":"from mypy_boto3_license_manager_linux_subscriptions.type_defs import GetServiceSettingsResponseTypeDef"}],"quickstart":{"code":"import boto3\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n    from mypy_boto3_license_manager_linux_subscriptions import Client\n    from mypy_boto3_license_manager_linux_subscriptions.type_defs import GetServiceSettingsResponseTypeDef\n\ndef get_license_settings() -> GetServiceSettingsResponseTypeDef:\n    # mypy-boto3 provides type hints for the boto3 client\n    client: Client = boto3.client(\"license-manager-linux-subscriptions\")\n    response = client.get_service_settings()\n    print(f\"License settings: {response}\")\n    return response\n\nif __name__ == '__main__':\n    # Example usage (ensure AWS credentials are configured)\n    try:\n        get_license_settings()\n    except Exception as e:\n        print(f\"An error occurred: {e}\")","lang":"python","description":"This example demonstrates how to use `boto3.client` with type hints from `mypy-boto3-license-manager-linux-subscriptions`. The `TYPE_CHECKING` block ensures that the stub imports are only active during type checking, avoiding runtime import errors if the stub package is not installed in the runtime environment. This allows type checkers to validate the usage of the License Manager Linux Subscriptions client and its responses."},"warnings":[{"fix":"Upgrade to Python 3.9 or newer. If stuck on Python 3.8, use an older version of `mypy-boto3-license-manager-linux-subscriptions` generated by `mypy-boto3-builder < 8.12.0`.","message":"Support for Python 3.8 was removed from `mypy-boto3-builder` 8.12.0. This means `mypy-boto3-license-manager-linux-subscriptions` versions generated by builder 8.12.0 or later will not officially support Python 3.8.","severity":"breaking","affected_versions":"mypy-boto3-license-manager-linux-subscriptions >= 1.42.3 (generated by builder 8.12.0)"},{"fix":"Ensure `boto3` is installed in your environment: `pip install boto3`.","message":"This package provides only type stubs for `boto3`. It does not include `boto3` itself. You must install `boto3` separately to use the AWS SDK at runtime.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Review your code for direct TypeDef imports and update the names according to the new conventions. Consult the `mypy-boto3-builder` release notes or regenerate stubs to find the correct names.","message":"TypeDef naming conventions changed in `mypy-boto3-builder` 8.9.0. If you were directly importing specific generated TypeDefs (e.g., `CreateDistributionRequestRequestTypeDef`), their names might have been shortened (e.g., `CreateDistributionRequestTypeDef`) or suffixes adjusted.","severity":"breaking","affected_versions":"mypy-boto3-license-manager-linux-subscriptions versions generated by `mypy-boto3-builder >= 8.9.0`"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}