Type annotations for boto3.Outposts 1.14.43 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-outposts
Type annotations for boto3.Outposts 1.14.43 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.2.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 Outposts
service.
python -m pip install boto3-stubs[outposts]
How to use
Client annotations
OutpostsClient
provides annotations for boto3.client("outposts")
.
import boto3
from mypy_boto3_outposts import OutpostsClient
from mypy_boto3_outposts.type_defs import InstanceTypeItemTypeDef, ...
client: OutpostsClient = boto3.client("outposts")
# 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: OutpostsClient = session.client("outposts")
Typed dictionations
mypy_boto3_outposts.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
def get_structure() -> InstanceTypeItemTypeDef:
return {
...
}
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
# 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.43.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e604c451e3abbd82ee489329e8037f3ad3fcac315d380e04b9b7b94ea11af50c |
|
MD5 | b11fa171fcc4b433ea3fab48a3212f9d |
|
BLAKE2b-256 | 1662b465952f043a7e1f5e88d4a4c40cf7889c6ab602e537f345b2a175c7f4ba |
Hashes for mypy_boto3_outposts-1.14.43.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d15f6429c6b4b4df8f887a624813a6f3956c46f97bc3ee3730c165cfce2f8b6 |
|
MD5 | fcc68f6c2925b431c3c8185053fafc35 |
|
BLAKE2b-256 | 0532284fae7832a1657611ac00e00db791d9613e63d8eaae931efc283ba84096 |