Type annotations for boto3.ElasticInference 1.13.26 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-elastic-inference
Type annotations for boto3.ElasticInference 1.13.26 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.2.
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 ElasticInference
service.
python -m pip install boto3-stubs[elastic-inference]
# update installed packages index for automated type discovery
python -m mypy_boto3
Use boto3
with mypy_boto3_elastic_inference
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_elastic_inference import ElasticInferenceClient
# Now mypy can check if your code is valid.
client: ElasticInferenceClient = boto3.client("elastic-inference")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: ElasticInferenceClient = session.client("elastic-inference")
# Annotated paginators are included as well
import mypy_boto3_elastic_inference.paginator as elastic_inference_paginators
describe_accelerators_paginator: elastic_inference_paginators.DescribeAcceleratorsPaginator = client.get_paginator("describe_accelerators")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_elastic_inference
and other installed services.
# Run this command when you add or remove service packages
python -m mypy_boto3
Generated index provides overloads for boto3.client
and boto3.service
,
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 carefullyVSCode
does not currently support function overloads
Also, generated index allows you to import types from mypy_boto3
:
# you can replace imports
import mypy_boto3_elastic_inference as elastic_inference
from mypy_boto3_elastic_inference import ElasticInferenceClient
# with these
from mypy_boto3 import elastic_inference
from mypy_boto3.elastic_inference import ElasticInferenceClient
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-elastic-inference-1.13.26.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c57930ee2f7047c363e01c3b2f6df0fd47774cae9b90ad3159545d3402527425 |
|
MD5 | 4624749ef45cd06103a23028163b6105 |
|
BLAKE2b-256 | 7a3b58ac3495eaa09659c70b386ea93fdf42f83cf09d88bf4a1c71c74ad148b7 |
Hashes for mypy_boto3_elastic_inference-1.13.26.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be038a118aa87e43acad661c19542742fa04b510438ebe8c4a45ab7241f69238 |
|
MD5 | cfa3a8a6dfd86bdb8b7117dd4651e376 |
|
BLAKE2b-256 | 3b793cf58086c7ca06c9560a9e00b62832ac71d14a8f15c177f1a99e3367ec47 |