Type annotations for boto3.Synthetics 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-synthetics
Type annotations for boto3.Synthetics 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 Synthetics
service.
python -m pip install boto3-stubs[synthetics]
Use boto3
with mypy_boto3_synthetics
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_synthetics import SyntheticsClient
# Now mypy can check if your code is valid.
client: SyntheticsClient = boto3.client("synthetics")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: SyntheticsClient = session.client("synthetics")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_synthetics
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("synthetics")
session_client = boto3.Session().client("synthetics")
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-synthetics-1.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d3c1671ebba5b1542fd6afc2f107ee09f3a5f58b97b14e75912e218a29470db |
|
MD5 | d8f9fd233c9c386f96d95f07c736edb7 |
|
BLAKE2b-256 | 8495b70dc1ac44feb0b846341852c30cd17a8b0a0ccb71b5246ec0bd9bf3b54a |
Hashes for mypy_boto3_synthetics-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 685517f677663bc79c53d368fd0454413a1c1a4ab5222c09f715babdc2e67e5b |
|
MD5 | 491a7259cc3fc361af8cf1373edb1d28 |
|
BLAKE2b-256 | 6f2d6d6cb6c717c64c0593fc2390d5cb191f402ed079dfbd1555652001cc85dc |