{"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":"python","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,"search_vec":"'align':53 'analysi':86 'annot':19 'aw':79 'boto3':3,10,22,40,47,56,66,71,74 'builder':72 'check':28 'client':24 'complet':15 'ecosystem':41 'enabl':25 'enhanc':73 'frequent':62 'generat':43 'hint':78 'lead':60 'like':31 'mypi':2,9,32,39,70,75 'mypy-boto3':38 'mypy-boto3-builder':69 'mypy-boto3-sso-oidc':1,8 'oidc':5,12,82 'packag':50 'part':35 'provid':13 'releas':67 'servic':48 'set':16 'sso':4,11,81 'sso-oidc':80 'ssooidc':23 'static':26,85 'static-analysi':84 'stub':7,44,83 'tie':64 'tool':30 'type':6,18,27,59,77 'type-hint':76 'typic':52 'updat':63 'version':51,57","created_at":"2026-04-11T09:23:08.516857+00:00","updated_at":"2026-04-16T17:15:03.064097+00:00","problems":{"verify_error":"error: Failed to parse: `mypy-boto3-sso-oidc boto3`\n  Caused by: Expected one of `@`, `(`, `<`, `=`, `>`, `~`, `!`, `;`, found `b`\nmypy-boto3-sso-oidc boto3\n                    ^"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.43.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/youtype/mypy_boto3_builder","docs":"https://youtype.github.io/boto3_stubs_docs/mypy_boto3_sso_oidc/","changelog":null,"pypi":"https://pypi.org/project/mypy-boto3-sso-oidc/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs","aws"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-28","last_verified":"2026-08-28","next_check":"2026-07-05","install_tag":null}}