Registry /
type-stubs / mypy-boto3-rolesanywhere
Install & Compatibility
Where this runs
tested against v1.43.58 · 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 · 51.9MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 2.7s · import 0.000s · 52MB
50MB installed
● package 50MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
RolesAnywhereClient
✓ from mypy_boto3_rolesanywhere import RolesAnywhereClient
✗ from mypy_boto3_rolesanywhere import RolesAnywhereClient
This quickstart demonstrates how to initialize a `boto3` IAM Roles Anywhere client and apply the type hints provided by `mypy-boto3-rolesanywhere`. This allows for static type checking and improved IDE auto-completion when interacting with the service. Ensure `boto3` is also installed.
import boto3
from mypy_boto3_rolesanywhere.client import RolesAnywhereClient
from mypy_boto3_rolesanywhere.type_defs import ListProfilesResponseTypeDef
# Get a Boto3 Roles Anywhere client, explicitly typed for mypy
client: RolesAnywhereClient = boto3.client("rolesanywhere")
try:
# Call an operation; mypy will now provide completions and type checking
response: ListProfilesResponseTypeDef = client.list_profiles()
print(f"Successfully listed {len(response.get('profiles', []))} RolesAnywhere profiles.")
if 'nextToken' in response:
print(f"Next token available: {response['nextToken']}")
except client.exceptions.AccessDeniedException as e:
print(f"Access Denied: {e}")
except Exception as e:
print(f"An unexpected error occurred: {e}")
Debug
Known issues
breakingSupport for Python 3.8 was removed starting with `mypy-boto3-builder` version 8.12.0. Packages generated by this builder (including `mypy-boto3-rolesanywhere`) will not function correctly on Python 3.8.fixUpgrade your Python environment to 3.9 or higher.
affects: >=8.12.0 of `mypy-boto3-builder` and its generated packages
breakingThe `mypy-boto3` ecosystem, including `mypy-boto3-rolesanywhere`, migrated to PEP 561 compliant packages with `mypy-boto3-builder` version 8.12.0. This might affect advanced build setups or custom type checking configurations.fixEnsure your `mypy` configuration is up-to-date. Standard import paths like `from mypy_boto3_rolesanywhere.client import RolesAnywhereClient` remain stable.
affects: >=8.12.0 of `mypy-boto3-builder` and its generated packages
gotchaThis library provides type stubs only. For runtime functionality, the `boto3` library must be installed alongside `mypy-boto3-rolesanywhere`. Forgetting `pip install boto3` is a common mistake.fixEnsure both `mypy-boto3-rolesanywhere` and `boto3` are installed: `pip install boto3 mypy-boto3-rolesanywhere`.
affects: All versions
breakingTypeDef argument names for methods were shortened and conflicting TypeDef `Extra` postfixes were reordered in `mypy-boto3-builder` version 8.9.0. If you explicitly import or reference specific TypeDefs for request/response bodies, their names may have changed.fixRefer to the updated type definitions in the `mypy-boto3-rolesanywhere.type_defs` module. IDE auto-completion usually helps in finding the correct names.
affects: >=8.9.0 of `mypy-boto3-builder` and its generated packages
Upgrade
Version history
1.43.58latest on PyPI · released Jul 28, 2026
Audit
Dependencies
boto3requiredProvides the runtime functionality that these type stubs enhance. Required to use the typed client/resource objects.