{"id":3110,"library":"mypy-boto3-license-manager","title":"mypy-boto3-license-manager Type Stubs for Boto3","description":"mypy-boto3-license-manager provides type annotations (stubs) for the `boto3` AWS SDK's LicenseManager service. It enables static type checking for `boto3` code interacting with License Manager, helping developers catch type-related errors before runtime. This package is part of the `mypy-boto3` ecosystem, generated by `mypy-boto3-builder`. The current version is 1.42.3, closely aligned with `boto3` releases and updated frequently.","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-stubs","license-manager","static-analysis"],"install":[{"cmd":"pip install mypy-boto3-license-manager","lang":"bash","label":"Install service-specific stubs"}],"dependencies":[{"reason":"Provides the actual runtime functionality for AWS interactions. This package only adds type annotations.","package":"boto3","optional":false},{"reason":"May be required for full compatibility with older Python versions (e.g., <3.9) to backport newer typing features. Automatically handled by the builder.","package":"typing-extensions","optional":true}],"imports":[{"symbol":"LicenseManagerClient","correct":"from mypy_boto3_license_manager.client import LicenseManagerClient"},{"symbol":"LicenseConfigurationTypeDef","correct":"from mypy_boto3_license_manager.type_defs import LicenseConfigurationTypeDef"},{"symbol":"ListLicenseConfigurationsRequestRequestTypeDef","correct":"from mypy_boto3_license_manager.type_defs import ListLicenseConfigurationsRequestRequestTypeDef"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_license_manager.client import LicenseManagerClient\nfrom mypy_boto3_license_manager.type_defs import (\n    LicenseConfigurationTypeDef,\n    ListLicenseConfigurationsRequestRequestTypeDef\n)\nimport os\n\ndef get_license_configurations(region: str) -> list[LicenseConfigurationTypeDef]:\n    # It's crucial to explicitly cast the client for mypy to pick up the types\n    client: LicenseManagerClient = boto3.client(\"license-manager\", region_name=region)\n\n    # Example of using a TypedDict for a request payload\n    request: ListLicenseConfigurationsRequestRequestTypeDef = {\n        \"MaxResults\": 5,\n    }\n    response = client.list_license_configurations(**request)\n    return response.get(\"LicenseConfigurations\", [])\n\nif __name__ == \"__main__\":\n    # Example usage - ensure AWS credentials are configured (e.g., via env vars or ~/.aws/credentials)\n    # mypy will check this code for type consistency at compile time\n    # actual runtime execution requires valid AWS credentials and region.\n    aws_region = os.environ.get('AWS_REGION_NAME', 'us-east-1')\n    print(f\"Fetching License Manager configurations in region: {aws_region}\")\n    try:\n        configurations = get_license_configurations(aws_region)\n        if configurations:\n            for config in configurations:\n                print(f\"  ARN: {config.get('LicenseConfigurationArn')}, Name: {config.get('LicenseConfigurationName')}\")\n        else:\n            print(\"  No license configurations found.\")\n    except Exception as e:\n        print(f\"Error fetching configurations: {e}\")","lang":"python","description":"This quickstart demonstrates how to initialize a `boto3` client for License Manager and type-annotate it using `LicenseManagerClient`. It also shows how to use generated `TypedDict` for request parameters and response items, allowing `mypy` to validate your API calls."},"warnings":[{"fix":"Upgrade your Python environment to 3.9 or higher. If you require Python 3.8, you might need to pin to an older, compatible version of `mypy-boto3-license-manager`.","message":"Python 3.8 support has been removed across the `mypy-boto3` ecosystem. This package, if generated by `mypy-boto3-builder` v8.12.0 or later, will not support Python 3.8.","severity":"breaking","affected_versions":"Packages generated by `mypy-boto3-builder` v8.12.0 and later (e.g., `mypy-boto3-license-manager==1.42.3`)"},{"fix":"Review your code for any explicit TypeDef annotations and update them to match the new naming conventions. `mypy` will typically highlight these as unknown types.","message":"TypeDef naming conventions changed in builder version 8.9.0. This includes shortening names for packed method arguments (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`) and moving 'Extra' postfixes to the end (e.g., `CreateDistributionExtraRequestTypeDef` -> `CreateDistributionRequestExtraTypeDef`).","severity":"breaking","affected_versions":"Packages generated by `mypy-boto3-builder` v8.9.0 and later (e.g., `mypy-boto3-license-manager==1.42.3`)"},{"fix":"Install the specific `mypy-boto3-SERVICE_NAME` package for each service you use, or `mypy-boto3` for all services (which is a larger installation).","message":"This package (`mypy-boto3-license-manager`) provides type stubs *only* for the LicenseManager service. If you need type annotations for other AWS services (e.g., S3, EC2), you must install their respective `mypy-boto3-SERVICE_NAME` packages. Installing `mypy-boto3` directly will install stubs for all services.","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"}