Type annotations for boto3.MTurk 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-mturk
Type annotations for boto3.MTurk 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 MTurk
service.
python -m pip install boto3-stubs[mturk]
Use boto3
with mypy_boto3_mturk
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_mturk import MTurkClient
# Now mypy can check if your code is valid.
client: MTurkClient = boto3.client("mturk")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: MTurkClient = session.client("mturk")
# Annotated paginators are included as well
import mypy_boto3_mturk.paginator as mturk_paginators
list_assignments_for_hit_paginator: mturk_paginators.ListAssignmentsForHITPaginator = client.get_paginator("list_assignments_for_hit")
list_bonus_payments_paginator: mturk_paginators.ListBonusPaymentsPaginator = client.get_paginator("list_bonus_payments")
list_hits_paginator: mturk_paginators.ListHITsPaginator = client.get_paginator("list_hits")
list_hits_for_qualification_type_paginator: mturk_paginators.ListHITsForQualificationTypePaginator = client.get_paginator("list_hits_for_qualification_type")
list_qualification_requests_paginator: mturk_paginators.ListQualificationRequestsPaginator = client.get_paginator("list_qualification_requests")
list_qualification_types_paginator: mturk_paginators.ListQualificationTypesPaginator = client.get_paginator("list_qualification_types")
list_reviewable_hits_paginator: mturk_paginators.ListReviewableHITsPaginator = client.get_paginator("list_reviewable_hits")
list_worker_blocks_paginator: mturk_paginators.ListWorkerBlocksPaginator = client.get_paginator("list_worker_blocks")
list_workers_with_qualification_type_paginator: mturk_paginators.ListWorkersWithQualificationTypePaginator = client.get_paginator("list_workers_with_qualification_type")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_mturk
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("mturk")
session_client = boto3.Session().client("mturk")
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-mturk-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98e94606b00f2194e776cedd56e6e53e63ae04e4f4f1f18d6eb552f11f239a9d |
|
MD5 | d5b8f54d6dcdfd405c53f0e8aa401faa |
|
BLAKE2b-256 | dae11461c17457e8492dcd6b71fd780d83b58dc68bb4b4925b1e1aa979e2b19d |
Hashes for mypy_boto3_mturk-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08d98f69dcef35d72f92bc80d71a67578aa05e19b80960f08b9df767194c5dab |
|
MD5 | 27fec4586c72389392b16a5ebf1a1ee8 |
|
BLAKE2b-256 | 260cba23e19cde6d6b5b865136a7e687765062c8ff983e184bc7b07312706bfb |