Registry / type-stubs / mypy-boto3-rolesanywhere

mypy-boto3-rolesanywhere

JSON →
library1.43.58pypypi✓ verified 22d ago

mypy-boto3-rolesanywhere provides static type annotations for the `boto3` IAM Roles Anywhere service client. It is part of the `mypy-boto3` project, which generates comprehensive type stubs for all AWS services supported by `boto3`, significantly enhancing code quality and developer experience through static analysis. The library is actively maintained with frequent updates, currently at version 1.42.5, typically aligning with `boto3` and `botocore` releases.

pip install mypy-boto3-rolesanywhere
INSTALL
IMPORT
SIG · MYPY-BOTO3-ROLESAN
M
mypy-boto3-rolesanywhere
type-stubspythonv1.43.58
Install
2.7s avg
Import
Disk
50MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 51.9MB
glibc
py 3.103.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.
fix
Upgrade 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.
fix
Ensure 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.
fix
Ensure 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.
fix
Refer 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.
Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
1
Resources
mypy-boto3-rolesanywhere — pip install mypy-boto3-rolesanywhere · libregistry