mypy-boto3-license-manager-linux-subscriptions type stubs
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.
Warnings
- breaking 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.
- gotcha 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.
- breaking 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.
Install
-
pip install mypy-boto3-license-manager-linux-subscriptions -
pip install boto3
Imports
- Client
from mypy_boto3_license_manager_linux_subscriptions import Client
- LicenseManagerLinuxSubscriptionsClient
from mypy_boto3_license_manager_linux_subscriptions.client import LicenseManagerLinuxSubscriptionsClient
- GetServiceSettingsResponseTypeDef
from mypy_boto3_license_manager_linux_subscriptions.type_defs import GetServiceSettingsResponseTypeDef
Quickstart
import boto3
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from mypy_boto3_license_manager_linux_subscriptions import Client
from mypy_boto3_license_manager_linux_subscriptions.type_defs import GetServiceSettingsResponseTypeDef
def get_license_settings() -> GetServiceSettingsResponseTypeDef:
# mypy-boto3 provides type hints for the boto3 client
client: Client = boto3.client("license-manager-linux-subscriptions")
response = client.get_service_settings()
print(f"License settings: {response}")
return response
if __name__ == '__main__':
# Example usage (ensure AWS credentials are configured)
try:
get_license_settings()
except Exception as e:
print(f"An error occurred: {e}")