Type annotations for boto3.Outposts 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-outposts
Type annotations for boto3.Outposts 1.14.0 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 Outposts
service.
python -m pip install boto3-stubs[outposts]
Use boto3
with mypy_boto3_outposts
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_outposts import OutpostsClient
# Now mypy can check if your code is valid.
client: OutpostsClient = boto3.client("outposts")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: OutpostsClient = session.client("outposts")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_outposts
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("outposts")
session_client = boto3.Session().client("outposts")
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-outposts-1.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 649f5031d0c7cc275c4929321886ef1e20851085f85f9d56679ac85c8ea54854 |
|
MD5 | 15ba49cc626acac88d668bc8a50f7200 |
|
BLAKE2b-256 | c9b7cc3cb35efbcb8fbc03bbbd4ab22efe41d06804fc2ccea87c15cea079b97d |
Hashes for mypy_boto3_outposts-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7ed58384134cbb8d5eef048700618c6cfb9959d8b6e35e6de12b143330d05b7 |
|
MD5 | bcf53596d9347fc266988d323e0d41d6 |
|
BLAKE2b-256 | 41c452a902a87d14e8ef4d56a4802ab59a3903aa4c5900dbec6f31edeb31efe9 |