Registry /
type-stubs / mypy-boto3-resource-groups
Install & Compatibility
Where this runs
tested against v1.43.0 · 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
muslpy 3.10–3.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.7MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 3.4s · import 0.000s · 20MB
18MB installed
● package 18MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ResourceGroupsClient
✓ from mypy_boto3_resource_groups import ResourceGroupsClient
✗ from mypy_boto3_resource_groups import ResourceGroupsClient
ResourceGroupsServiceResource
✓ from mypy_boto3_resource_groups import ResourceGroupsServiceResource
ResourceGroupsPaginator
✓ from mypy_boto3_resource_groups import ResourceGroupsPaginator
This example demonstrates how to obtain a `boto3` client for AWS Resource Groups and apply explicit type annotations from `mypy-boto3-resource-groups` for improved static analysis and auto-completion. The actual `boto3` library is required at runtime.
import boto3
from mypy_boto3_resource_groups.client import ResourceGroupsClient
from typing import TYPE_CHECKING
# Ensure boto3 is installed (e.g., pip install boto3)
# Standard boto3 client creation
client = boto3.client("resource-groups")
# Type hint the client for static analysis (e.g., MyPy, IDEs)
# The 'if TYPE_CHECKING:' block ensures this import is only for type checking
# and doesn't cause runtime issues if the stub package isn't installed.
if TYPE_CHECKING:
resource_groups_client: ResourceGroupsClient = client
else:
resource_groups_client = client
# Now 'resource_groups_client' has full type annotations
# For example, calling an operation will show expected arguments and return types.
try:
response = resource_groups_client.list_groups()
print("Successfully listed Resource Groups.")
# Example: print(response['GroupIdentifiers'])
except Exception as e:
print(f"Error listing Resource Groups: {e}")
Debug
Known issues
breakingPython 3.8 is no longer supported. `mypy-boto3-builder` version 8.12.0 and later, which generates this package, dropped support for Python 3.8. Users must use Python 3.9 or newer.fixUpgrade your Python environment to 3.9 or a later version.
affects: mypy-boto3-builder >=8.12.0 (translates to mypy-boto3-* packages generated by it)
breakingTypeDef naming conventions changed in `mypy-boto3-builder` 8.9.0. `TypeDef` for packed method arguments use shorter names if possible (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`), and conflicting `Extra` postfixes were moved to the end (e.g., `CreateDistributionExtraRequestTypeDef` -> `CreateDistributionRequestExtraTypeDef`).fixUpdate any custom `TypedDict` definitions or manual type hints that rely on previous naming conventions.
affects: mypy-boto3-builder >=8.9.0 (translates to mypy-boto3-* packages generated by it)
gotchaThese packages provide *only* type annotations, not runtime functionality. You must have the `boto3` library installed alongside `mypy-boto3-resource-groups` for your code to run.fixEnsure `boto3` is installed via `pip install boto3`.
affects: All versions
gotchaWhile type discovery often works, explicit type annotations for `boto3.client()` and `boto3.resource()` calls are highly recommended, especially for optimal auto-completion and type checking in IDEs like VSCode and PyCharm.fixAdd explicit type hints, e.g., `client: ResourceGroupsClient = boto3.client('resource-groups')`. affects: All versions
breakingMigration to PEP 561 packages in `mypy-boto3-builder` 8.12.0. This is a significant internal packaging change for how type stubs are distributed and discovered by type checkers. While generally beneficial, it might affect custom build pipelines or older environments.fixEnsure your environment and type checker are up-to-date and compatible with PEP 561 stub packages.
affects: mypy-boto3-builder >=8.12.0
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the runtime functionality for AWS SDK calls. These are only type stubs.