Type annotations for boto3.FraudDetector 1.14.40 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-frauddetector
Type annotations for boto3.FraudDetector 1.14.40 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.40.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ac1d61754bf03495da0dbf5cfb3f2906d8604d1e19132a2960f72f9a753876c |
|
MD5 | d78eb999f96f2afe415cafeb39b39d1c |
|
BLAKE2b-256 | 403ff462eabcac18c75fc453c1b39e390f36d38d432a53845fcc31aef9d93985 |
Hashes for mypy_boto3_frauddetector-1.14.40.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91b843d84f9cd4e8d8a92955b77c7c2c16ce2d40d2be6f20408f9ff07fe5e844 |
|
MD5 | 0e0139d92eeaf4dc12a47ad8cae1eb2e |
|
BLAKE2b-256 | 70ca251856eddd50966b921be3d38689705a9ea99bd9e1d6966ed6951e12796f |