Type annotations for boto3.AugmentedAIRuntime 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-sagemaker-a2i-runtime
Type annotations for boto3.AugmentedAIRuntime 1.13.26 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.4.
More information can be found on boto3-stubs page.
How to use
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for AugmentedAIRuntime
service.
python -m pip install boto3-stubs[sagemaker-a2i-runtime]
Use boto3
with mypy_boto3_sagemaker_a2i_runtime
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_sagemaker_a2i_runtime import AugmentedAIRuntimeClient
# Now mypy can check if your code is valid.
client: AugmentedAIRuntimeClient = boto3.client("sagemaker-a2i-runtime")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: AugmentedAIRuntimeClient = session.client("sagemaker-a2i-runtime")
# Annotated paginators are included as well
import mypy_boto3_sagemaker_a2i_runtime.paginator as sagemaker_a2i_runtime_paginators
list_human_loops_paginator: sagemaker_a2i_runtime_paginators.ListHumanLoopsPaginator = client.get_paginator("list_human_loops")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_sagemaker_a2i_runtime
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("sagemaker-a2i-runtime")
session_client = boto3.Session().client("sagemaker-a2i-runtime")
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-sagemaker-a2i-runtime-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f3089bcc9e502881216b6a1c6fad5daa3f0fc59d5405ea582f238cdf8327fe9 |
|
MD5 | fb33b2a4f886753b303d64f08d3f9d06 |
|
BLAKE2b-256 | c7da5a6637ea7d88b2903119fe53aa2fd6744ae7c6d3c678021ff9b3e5c2ed5f |
Hashes for mypy_boto3_sagemaker_a2i_runtime-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f8787daf8cc92316c7f93d90bc86b48d98da93501ebac64129469e3e29d98ef |
|
MD5 | cb7cb9d906cfc3a8e1b8d05a87bf4baa |
|
BLAKE2b-256 | 4a16879abca13dfc21279e5598790a2aa5f5683352e98874de491a6c7341ff99 |