Type annotations for boto3.Detective 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-detective
Type annotations for boto3.Detective 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 Detective
service.
python -m pip install boto3-stubs[detective]
Use boto3
with mypy_boto3_detective
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_detective import DetectiveClient
# Now mypy can check if your code is valid.
client: DetectiveClient = boto3.client("detective")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: DetectiveClient = session.client("detective")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_detective
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("detective")
session_client = boto3.Session().client("detective")
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-detective-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb6d9886f92ee2a07ec4f9adcf9ba4427cb90333c7cca6d92706a1f0eae65da3 |
|
MD5 | 961979caa25d96ace2600110a66ca9c0 |
|
BLAKE2b-256 | e4977cd10f8006f96a937bab93ab8db0964aaf71812e5d736ead65356d29976f |
Hashes for mypy_boto3_detective-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4edf82ebef3cc701cef2196ff320269bf7681a4eb19bd38f3dc3bb731c405c5f |
|
MD5 | 687cd5c2fd9879b6853de62788b2fed4 |
|
BLAKE2b-256 | 4fa0ae95032f2bf9225dea9145441a70c8643e36d07c22263272776b26e3f94a |