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.95 runs
installs and imports cleanly · install 0.0s · import 0.616s · 51.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.9s · import 0.544s · 52MB
50MB installed
● package 50MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
SSOOIDCClient
✓ from mypy_boto3_sso_oidc.client import SSOOIDCClient
SSOOIDCServiceResource
✓ from mypy_boto3_sso_oidc.service_resource import SSOOIDCServiceResource
CreateTokenRequestRequestTypeDef
✓ from mypy_boto3_sso_oidc.type_defs import CreateTokenRequestRequestTypeDef
✗ from mypy_boto3_sso_oidc.type_defs import CreateTokenRequestTypeDef
TypeDef names might have changed in builder v8.9.0+. While some TypeDefs were shortened, 'CreateTokenRequestRequestTypeDef' specifically retains the longer name in current versions. Always verify TypeDef names from the stub files or official docs.
Demonstrates how to instantiate a boto3 SSOOIDC client and apply the type hints provided by `mypy-boto3-sso-oidc`. The `if TYPE_CHECKING:` block is a standard pattern to isolate type-only imports, preventing them from causing runtime issues or unnecessary dependencies.
import boto3
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from mypy_boto3_sso_oidc.client import SSOOIDCClient
from mypy_boto3_sso_oidc.type_defs import StartDeviceAuthorizationResponseTypeDef
# Instantiate a boto3 client (runtime)
client = boto3.client("sso-oidc")
# Use type hints for static analysis
# The 'if TYPE_CHECKING:' block ensures these imports are only for type checkers
# and do not create runtime dependencies.
if TYPE_CHECKING:
sso_oidc_client: SSOOIDCClient = client
# Example usage with type-hinted client
# Replace placeholders with actual values for a runnable example
response: StartDeviceAuthorizationResponseTypeDef = sso_oidc_client.start_device_authorization(
clientCode='YOUR_CLIENT_CODE',
startUrl='https://example.com'
)
print(f"Device Code: {response.get('deviceCode')}")
print("Boto3 SSOOIDC client created and type-hinted successfully (check with mypy)")
Debug
Known issues
breakingStarting with `mypy-boto3-builder` version 8.12.0 (which generated `mypy-boto3` packages like `1.42.x`+), Python 3.8 is no longer supported for any generated stub packages. This affects users running Python 3.8 environments.fixUpgrade your Python environment to version 3.9 or newer to continue receiving type stub updates.
affects: mypy-boto3-builder >= 8.12.0, mypy-boto3-sso-oidc >= 1.42.0
gotchaThe `mypy-boto3` ecosystem migrated to PEP 561-compliant packages (marked with `py.typed`) in `mypy-boto3-builder` 8.12.0. While this is generally beneficial for type discovery, ensure your `mypy` version is up-to-date to correctly discover these new-style stubs, especially if you had custom stub paths or configurations.fixUpdate `mypy` to its latest stable version (`pip install --upgrade mypy`). If issues persist, review your `mypy` configuration (e.g., `mypy.ini`) for any conflicting settings.
affects: mypy-boto3-builder >= 8.12.0, mypy-boto3-sso-oidc >= 1.42.0
breakingSome TypeDef names, particularly for request/response payloads, underwent breaking changes (shortened or reordered) in `mypy-boto3-builder` 8.9.0. For example, `CreateDistributionRequestRequestTypeDef` was shortened to `CreateDistributionRequestTypeDef` (though specific name changes vary by service). Code relying on older stub versions might require updating TypeDef names.fixConsult the specific service's `type_defs.pyi` file (within the installed stub package) or `mypy-boto3` release notes to identify the correct TypeDef names if you encounter `NameError` or `ImportError`.
affects: mypy-boto3-builder >= 8.9.0, mypy-boto3-sso-oidc versions generated by these builder versions (e.g., from ~1.38.0 onwards)
gotchaService names and their corresponding `mypy-boto3` package names can change or be deprecated, mirroring changes in AWS or `boto3`. For instance, the `sms-voice` service was removed in builder 8.11.0. While `sso-oidc` is currently stable, be aware of this pattern for other services or potential future changes.fixAlways check the latest `mypy-boto3-builder` release notes or `mypy-boto3` documentation if a service seems to be missing or renamed, especially after updating `boto3` or `mypy-boto3` packages.
affects: All versions of mypy-boto3-builder and generated packages
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredRuntime dependency for the type stubs to be useful.
mypyrequiredType checker to leverage the stubs.