Type annotations for boto3.FraudDetector 1.14.22 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-frauddetector
Type annotations for boto3.FraudDetector 1.14.22 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.22.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4888550e433e75701fad8ca7bc62b580b41eb2f6436a5dc310c431cea2f36729 |
|
MD5 | fad8289aba51e107b54f573e51eaaabd |
|
BLAKE2b-256 | 5d7c16cdf413da73feb7cb57cc3170f929eefe6ecec6341120aa3933ec947313 |
Hashes for mypy_boto3_frauddetector-1.14.22.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85b82d0a95da65e97afb8161c173a21cd9d26c5e1e73b652dd12a61c059b8e95 |
|
MD5 | 5186de3bb629e1156bb6a5336a9cccba |
|
BLAKE2b-256 | 045b0fd928733b64a0f8f23bf176cd08e78180725a41476f560d6404d1b64e5f |