Type annotations for boto3.MTurk 1.13.26 service, generated by mypy-boto3-buider 2.0.2
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.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.26.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e48ea5431a356f3ffd7de77c5418aface21282925b159420589a82280b9fa98 |
|
MD5 | 347d1817851a44c7d451b01aee202f1e |
|
BLAKE2b-256 | 25762eb2282b6295da3aa547d8471c6ec8cf1856c05ecff836d1df1fffecba15 |
Hashes for mypy_boto3_mturk-1.13.26.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2690426e99fd7b6b21eee2f975a69f6dd51dde11abba8c1e404ad52122a7cd1c |
|
MD5 | 8b3828b25a4dd01ff3547d17d20ed2e1 |
|
BLAKE2b-256 | fc967ba78d7df123b4e1065650cc17765dcb47a8123e6e0a2fd14e6fd99fac74 |