Registry / type-stubs / mypy-boto3-application-autoscaling

mypy-boto3-application-autoscaling

JSON →
library1.43.33pypypi✓ verified 28d ago

This library provides type annotations (stubs) for the `boto3` client for the AWS Application Auto Scaling service. It enables static type checking with tools like Mypy, improving code reliability and developer experience when working with AWS SDK for Python. The current version is 1.42.3, and releases typically follow the `boto3` release cycle, with new stub packages generated for each new `boto3` version.

pip install mypy-boto3-application-autoscaling boto3 mypy
INSTALL
IMPORT
SIG · MYPY-BOTO3-APPLICA
M
mypy-boto3-application-autoscaling
type-stubspythonv1.43.33
Install
6.1s avg
Import
589ms
Disk
114MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v1.43.33 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.618s · 116.6MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 6.1s · import 0.560s · 114MB
114MB installed
● package 114MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ApplicationAutoScalingClient
✓ from mypy_boto3_application_autoscaling import ApplicationAutoScalingClient
DescribeScalableTargetsResponseTypeDef
✓ from mypy_boto3_application_autoscaling.type_defs import DescribeScalableTargetsResponseTypeDef
For specific response or request type definitions.

This quickstart demonstrates how to type-annotate a `boto3` Application Auto Scaling client using `mypy-boto3-application-autoscaling` stubs. It also shows how to use specific `TypeDef` for API response objects, enabling Mypy to validate attribute access and types.

import boto3 from mypy_boto3_application_autoscaling import ApplicationAutoScalingClient from mypy_boto3_application_autoscaling.type_defs import DescribeScalableTargetsResponseTypeDef def list_scalable_targets() -> None: # Using type hint for the boto3 client client: ApplicationAutoScalingClient = boto3.client('application-autoscaling') # Example API call response: DescribeScalableTargetsResponseTypeDef = client.describe_scalable_targets( ServiceNamespace='ec2' ) print(f"Scalable targets found: {len(response['ScalableTargets'])}") for target in response['ScalableTargets']: print(f"- Resource ID: {target['ResourceId']}, Dimension: {target['ScalableDimension']}") # To run type checking: # 1. Save this as a Python file (e.g., `main.py`) # 2. Run `mypy main.py` in your terminal # To execute the code (requires AWS credentials configured): # list_scalable_targets()
Debug
Known issues
breakingPython 3.8 support has been removed. All `mypy-boto3` packages, including `mypy-boto3-application-autoscaling`, now require Python 3.9 or newer.
fix
Upgrade your Python environment to 3.9 or newer. If you must use Python 3.8, pin `mypy-boto3-application-autoscaling` to a version older than 1.42.3 (e.g., `mypy-boto3-application-autoscaling<1.42.3`).
affects: >=1.42.3 (mypy-boto3-application-autoscaling), >=8.12.0 (mypy-boto3-builder)
breakingThe `mypy-boto3-builder` migrated to PEP 561 compliant packages. While this generally improves compatibility with type checkers, it might affect custom build processes or tools that rely on the old package structure.
fix
Ensure your `mypy` and other type-checking tools are up-to-date. If you encounter issues, review `mypy` documentation on PEP 561 compliance and package discovery.
affects: >=1.42.3 (mypy-boto3-application-autoscaling), >=8.12.0 (mypy-boto3-builder)
gotchaThe version of `mypy-boto3-application-autoscaling` should ideally match your `boto3` runtime version to ensure accurate type hints. Mismatched versions can lead to `mypy` errors or incorrect type inferences.
fix
Always install `mypy-boto3-application-autoscaling` with the same major.minor.patch version as your `boto3` installation (e.g., if `boto3==1.42.3`, install `mypy-boto3-application-autoscaling==1.42.3`).
affects: All versions
breakingIn `mypy-boto3-builder` 8.9.0, TypeDef names for packed method arguments were shortened (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`). If you were directly importing these longer names, they will no longer exist.
fix
Update your code to use the shorter TypeDef names. Consult the specific service's `mypy-boto3` documentation or generated files for the correct names.
affects: >=1.34.0 (mypy-boto3-application-autoscaling), >=8.9.0 (mypy-boto3-builder)
Upgrade
Version history
1.43.33latest on PyPI · released Jun 18, 2026
Audit
Dependencies
boto3requiredRequired at runtime for actual AWS API calls. Stubs provide type hints for this library.
mypyoptionalType checker required to utilize these stubs.
Agent activity
20 hits · last 30 days
node
16
Amazon
1
OpenAI (training)
1
Resources
mypy-boto3-application-autoscaling — pip install mypy-boto3-application-autoscaling · libregistry