{"id":3149,"library":"mypy-boto3-sso-oidc","title":"mypy-boto3-sso-oidc Type Stubs","description":"mypy-boto3-sso-oidc provides a complete set of type annotations for the boto3 SSOOIDC client, enabling static type checking with tools like mypy. It's part of the `mypy-boto3` ecosystem, which generates stubs for all boto3 services. The package version typically aligns with the boto3 version it types, leading to frequent updates tied to boto3 releases and `mypy-boto3-builder` enhancements.","status":"active","version":"1.42.67","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["boto3","mypy","type-hints","aws","sso-oidc","stubs","static-analysis"],"install":[{"cmd":"pip install mypy-boto3-sso-oidc boto3","lang":"bash","label":"Install service stubs and boto3"}],"dependencies":[{"reason":"Runtime dependency for the type stubs to be useful.","package":"boto3","optional":false},{"reason":"Type checker to leverage the stubs.","package":"mypy","optional":false}],"imports":[{"symbol":"SSOOIDCClient","correct":"from mypy_boto3_sso_oidc.client import SSOOIDCClient"},{"symbol":"SSOOIDCServiceResource","correct":"from mypy_boto3_sso_oidc.service_resource import SSOOIDCServiceResource"},{"note":"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.","wrong":"from mypy_boto3_sso_oidc.type_defs import CreateTokenRequestTypeDef","symbol":"CreateTokenRequestRequestTypeDef","correct":"from mypy_boto3_sso_oidc.type_defs import CreateTokenRequestRequestTypeDef"}],"quickstart":{"code":"import boto3\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n    from mypy_boto3_sso_oidc.client import SSOOIDCClient\n    from mypy_boto3_sso_oidc.type_defs import StartDeviceAuthorizationResponseTypeDef\n\n# Instantiate a boto3 client (runtime)\nclient = boto3.client(\"sso-oidc\")\n\n# Use type hints for static analysis\n# The 'if TYPE_CHECKING:' block ensures these imports are only for type checkers\n# and do not create runtime dependencies.\nif TYPE_CHECKING:\n    sso_oidc_client: SSOOIDCClient = client\n    # Example usage with type-hinted client\n    # Replace placeholders with actual values for a runnable example\n    response: StartDeviceAuthorizationResponseTypeDef = sso_oidc_client.start_device_authorization(\n        clientCode='YOUR_CLIENT_CODE',\n        startUrl='https://example.com'\n    )\n    print(f\"Device Code: {response.get('deviceCode')}\")\n\nprint(\"Boto3 SSOOIDC client created and type-hinted successfully (check with mypy)\")","lang":"python","description":"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."},"warnings":[{"fix":"Upgrade your Python environment to version 3.9 or newer to continue receiving type stub updates.","message":"Starting 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.","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.12.0, mypy-boto3-sso-oidc >= 1.42.0"},{"fix":"Update `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.","message":"The `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.","severity":"gotcha","affected_versions":"mypy-boto3-builder >= 8.12.0, mypy-boto3-sso-oidc >= 1.42.0"},{"fix":"Consult 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`.","message":"Some 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.","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.9.0, mypy-boto3-sso-oidc versions generated by these builder versions (e.g., from ~1.38.0 onwards)"},{"fix":"Always 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.","message":"Service 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.","severity":"gotcha","affected_versions":"All versions of mypy-boto3-builder and generated packages"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}