{"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":"python","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,"search_vec":"'1.42.3':39 'activ':42 'annot':2,18 'aw':29,57 'boto3':4,11,21,49,55,58 'builder':56 'check':27 'cloud':64 'current':36 'ensur':24 'frequent':46 'hint':62 'licens':5,12,66 'license-manager-user-subscript':65 'licensemanagerusersubscript':22 'maintain':43 'manag':6,13,67 'mypi':10,54,59 'mypy-boto3-builder':53 'mypy-boto3-license-manager-user-subscriptions':9 'provid':16 'python':33 'releas':45 'sdk':30 'servic':23 'static':25 'stub':63 'subscript':8,15,69 'synchronis':47 'type':1,17,26,61 'type-hint':60 'updat':50 'usag':31 'user':7,14,68 'version':38 'via':51","created_at":"2026-04-11T17:37:18.407897+00:00","updated_at":"2026-04-16T17:02:38.943313+00:00","problems":{"verify_error":"error: Failed to parse: `mypy-boto3-license-manager-user-subscriptions boto3`\n  Caused by: Expected one of `@`, `(`, `<`, `=`, `>`, `~`, `!`, `;`, found `b`\nmypy-boto3-license-manager-user-subscriptions boto3\n                                              ^"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.43.81","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/youtype/mypy_boto3_builder","docs":"https://youtype.github.io/boto3_stubs_docs/mypy_boto3_license_manager_user_subscriptions/","changelog":null,"pypi":"https://pypi.org/project/mypy-boto3-license-manager-user-subscriptions/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs","aws"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-28","last_verified":"2026-08-29","next_check":"2026-07-05","install_tag":null}}