{"id":3617,"library":"mypy-boto3-license-manager-user-subscriptions","title":"Type annotations for boto3 License Manager User Subscriptions","description":"mypy-boto3-license-manager-user-subscriptions provides type annotations for the `boto3` LicenseManagerUserSubscriptions service, ensuring static type checking for AWS SDK usage in Python. It is currently at version 1.42.3 and is actively maintained, with releases frequently synchronised with `boto3` updates via the `mypy-boto3-builder`.","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","cloud","license-manager-user-subscriptions"],"install":[{"cmd":"pip install mypy-boto3-license-manager-user-subscriptions boto3","lang":"bash","label":"Install package and boto3 runtime"}],"dependencies":[{"reason":"Runtime dependency for the AWS SDK functions being type-checked.","package":"boto3"},{"reason":"Provides backported typing features for older Python versions. Required for Python < 3.9 in previous versions of mypy-boto3, though less critical for >=3.9.","package":"typing-extensions","optional":true}],"imports":[{"note":"The primary client interface for the service.","symbol":"LicenseManagerUserSubscriptionsClient","correct":"from mypy_boto3_license_manager_user_subscriptions.client import LicenseManagerUserSubscriptionsClient"},{"note":"Provides access to the service's high-level resource interface, if available for this service.","symbol":"LicenseManagerUserSubscriptionsService","correct":"from mypy_boto3_license_manager_user_subscriptions.service import LicenseManagerUserSubscriptionsService"},{"note":"Paginator types are located in the `paginator` submodule, not directly in the client module.","wrong":"from mypy_boto3_license_manager_user_subscriptions.client import ListUserAssociationsPaginator","symbol":"ListUserAssociationsPaginator","correct":"from mypy_boto3_license_manager_user_subscriptions.paginator import ListUserAssociationsPaginator"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_license_manager_user_subscriptions.client import LicenseManagerUserSubscriptionsClient\nfrom typing import TYPE_CHECKING\n\n# Boto3 client without explicit type annotation (type checkers will infer)\nclient = boto3.client(\"license-manager-user-subscriptions\")\nclient.list_user_associations() # type checks correctly\n\n# Boto3 client with explicit type annotation\ndef get_license_client() -> LicenseManagerUserSubscriptionsClient:\n    return boto3.client(\"license-manager-user-subscriptions\")\n\nlicense_client: LicenseManagerUserSubscriptionsClient = get_license_client()\nlicense_client.list_user_associations(InstanceId='test-instance') # type checks correctly\n\n# Example of using a Paginator (if available for the operation)\nif TYPE_CHECKING:\n    from mypy_boto3_license_manager_user_subscriptions.paginator import ListUserAssociationsPaginator\n\n    paginator: ListUserAssociationsPaginator = license_client.get_paginator(\"list_user_associations\")\n    for page in paginator.paginate():\n        print(page.get('InstanceUserSummaries'))\n\nprint(\"mypy-boto3-license-manager-user-subscriptions setup successful!\")","lang":"python","description":"This quickstart demonstrates how to import and use the `LicenseManagerUserSubscriptionsClient` for type-hinting `boto3` calls. It shows both implicit and explicit type annotation for the client, and how to correctly use a paginator with type hints. Type checkers like MyPy will use these annotations to validate your code."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or newer. The `mypy-boto3` ecosystem currently requires Python 3.9+.","message":"Support for Python 3.8 has been officially removed starting from mypy-boto3-builder 8.12.0. Projects using this package on Python 3.8 will encounter compatibility issues.","severity":"breaking","affected_versions":">=8.12.0 (builder version), >=1.42.3 (package version)"},{"fix":"Review the generated type definitions or documentation for the specific `TypeDef` you are using and update your code to reflect the new naming conventions.","message":"Version 8.9.0 of `mypy-boto3-builder` introduced breaking changes to `TypeDef` naming conventions, shortening names and reordering 'Extra' postfixes. This can cause type-checking errors if you explicitly reference these `TypedDict` types.","severity":"breaking","affected_versions":">=8.9.0 (builder version)"},{"fix":"Migrate your project to use `boto3-stubs` (recommended for general `boto3` type-hinting) or install individual `mypy-boto3-<service-name>` packages like this one, as needed.","message":"As of `mypy-boto3-builder` 8.9.0, the legacy `mypy-boto3` package was moved to a separate product and is no longer generated alongside `boto3-stubs`. Users relying on the monolithic `mypy-boto3` package might need to adjust their installations.","severity":"breaking","affected_versions":">=8.9.0 (builder version)"},{"fix":"Ensure your `mypy` setup and project structure are aligned with PEP 561 best practices. Update `mypy` to a recent version to benefit from improved stub discovery.","message":"The `mypy-boto3` ecosystem migrated to PEP 561 compliant packages in builder version 8.12.0. While this improves type checker integration, it might affect custom `mypy` configurations or complex project structures that previously relied on non-standard stub discovery methods.","severity":"gotcha","affected_versions":">=8.12.0 (builder version)"},{"fix":"Always refer to the latest documentation or changelog for your specific `mypy-boto3` service package if you encounter import errors for a service after an update.","message":"While not directly affecting `LicenseManagerUserSubscriptions`, the `sms-voice` service was deprecated and replaced by `pinpoint-sms-voice` in builder version 8.11.0. This indicates that AWS service names can change, leading to broken imports or type errors if not tracked.","severity":"gotcha","affected_versions":"All (general `mypy-boto3` ecosystem behavior)"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}