Type annotations for boto3.SSOOIDC 1.14.0 service, generated by mypy-boto3-buider 2.1.0
Project description
mypy-boto3-sso-oidc
Type annotations for boto3.SSOOIDC 1.14.0 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.1.0.
More information can be found on boto3-stubs page.
How to install
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for SSOOIDC
service.
python -m pip install boto3-stubs[sso-oidc]
How to use
Client annotations
SSOOIDCClient
provides annotations for boto3.client("sso-oidc")
.
import boto3
from mypy_boto3_sso_oidc import SSOOIDCClient
client: SSOOIDCClient = boto3.client("sso-oidc")
# now client usage is checked by mypy and IDE should provide code auto-complete
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: SSOOIDCClient = session.client("sso-oidc")
Typed dictionations
mypy_boto3_sso_oidc.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
from mypy_boto3_sso_oidc.type_defs import CreateTokenResponseTypeDef, ...
def get_structure() -> CreateTokenResponseTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_sso_oidc
and other installed services.
# Run this command after you add or remove service packages
python -m mypy_boto3
Generated type annotations provide overloads for boto3.client
and boto3.resource
,
boto3.Session.client
and boto3.Session.resource
functions,
so explicit type annotations are not needed.
mypy
supports function overloads as expectedPyCharm
also supports function overloads, but consumes a lot of RAM, use carefully if you have many services installedVSCode
does not currently support function overloads, use explicit type annotations
import boto3
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("sso-oidc")
session_client = boto3.Session().client("sso-oidc")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mypy-boto3-sso-oidc-1.14.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c99473de063de9bc04f02b8f6cdb2825d4226ad894c42f7933af2308acdaf802 |
|
MD5 | 1befa9468ec3adfbac2c1d36d1ef746e |
|
BLAKE2b-256 | 3b69e28eb150af4697b0d8aa1879ec8a7523dbb73df3de157ad42c94d6a2c97a |
Hashes for mypy_boto3_sso_oidc-1.14.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a236ea82a34c5d9f2f2eafde85548c1e3d07beef7439dac3e10861862e916add |
|
MD5 | c914c2bf8b7001295564e6b43f0c4483 |
|
BLAKE2b-256 | 5101e81770c8c0fa2148da1a51669ea1e1103e8604f783546e4197697f9e3b41 |