Type annotations for boto3.MTurk 1.13.25 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-mturk
Type annotations for boto3.MTurk 1.13.25 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.2.
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]
# update installed packages index for automated type discovery
python -m mypy_boto3
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")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_mturk
and other installed services.
# Run this command when you add or remove service packages
python -m mypy_boto3
Generated index provides overloads for boto3.client
and boto3.service
,
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 carefullyVSCode
does not currently support function overloads
Also, generated index allows you to import types from mypy_boto3
:
# you can replace imports
import mypy_boto3_mturk as mturk
from mypy_boto3_mturk import MTurkClient
# with these
from mypy_boto3 import mturk
from mypy_boto3.mturk import MTurkClient
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.25.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8b50f5fc6f14318ba2d8de144434f08395df6e04ee7a3ac7b58c3403aa9c9f1 |
|
MD5 | 26e2dbdff1ba48912bc9896ddda5b978 |
|
BLAKE2b-256 | f654997363df227c1cd9847f94903de9683a41ba81f65bc67a5370732c813124 |
Hashes for mypy_boto3_mturk-1.13.25.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 528b185a63579a9023a6968385d03bec218fb29d8257df0630f70aa2f31bf878 |
|
MD5 | 39f86497c3e16db579c7d0e02f00cac9 |
|
BLAKE2b-256 | e41883b38106a82610c0a09e2e2cfd6cf6b7b37962e09ed2355ad676e5034680 |