Type annotations for boto3.FraudDetector 1.14.6 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-frauddetector
Type annotations for boto3.FraudDetector 1.14.6 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 FraudDetector
service.
python -m pip install boto3-stubs[frauddetector]
How to use
Client annotations
FraudDetectorClient
provides annotations for boto3.client("frauddetector")
.
import boto3
from mypy_boto3_frauddetector import FraudDetectorClient
from mypy_boto3_frauddetector.type_defs import BatchCreateVariableErrorTypeDef, ...
client: FraudDetectorClient = boto3.client("frauddetector")
# 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: FraudDetectorClient = session.client("frauddetector")
Typed dictionations
mypy_boto3_frauddetector.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
def get_structure() -> BatchCreateVariableErrorTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_frauddetector
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("frauddetector")
session_client = boto3.Session().client("frauddetector")
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-frauddetector-1.14.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f7bca7f4e5da61d61619e9fc7aed0119acbafdb6f6949f171072d78889799b7 |
|
MD5 | 138d5eec6208ca196a0571de8c421753 |
|
BLAKE2b-256 | 161d538b44d95cda51985a415c10a1b60573c17b75bd6124c311b0c72a646656 |
Hashes for mypy_boto3_frauddetector-1.14.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2d7b1fbe6c8f7b7450b28237a2693685bf5333e43aff9945bec22809aaf27cd |
|
MD5 | 31579266c5ad41a131609b5be7558965 |
|
BLAKE2b-256 | 5ad0bb00490f6ad7063fdd98efb2a029a57f4c1bf5261d472c0932c2108a499c |