Type annotations for boto3.DeviceFarm 1.14.31 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-devicefarm
Type annotations for boto3.DeviceFarm 1.14.31 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 DeviceFarm
service.
python -m pip install boto3-stubs[devicefarm]
How to use
Client annotations
DeviceFarmClient
provides annotations for boto3.client("devicefarm")
.
import boto3
from mypy_boto3_devicefarm import DeviceFarmClient
from mypy_boto3_devicefarm.paginator import (
GetOfferingStatusPaginator,
ListArtifactsPaginator,
ListDeviceInstancesPaginator,
ListDevicePoolsPaginator,
ListDevicesPaginator,
ListInstanceProfilesPaginator,
ListJobsPaginator,
ListNetworkProfilesPaginator,
ListOfferingPromotionsPaginator,
ListOfferingsPaginator,
ListOfferingTransactionsPaginator,
ListProjectsPaginator,
ListRemoteAccessSessionsPaginator,
ListRunsPaginator,
ListSamplesPaginator,
ListSuitesPaginator,
ListTestsPaginator,
ListUniqueProblemsPaginator,
ListUploadsPaginator,
ListVPCEConfigurationsPaginator,
)
from mypy_boto3_devicefarm.type_defs import AccountSettingsTypeDef, ...
client: DeviceFarmClient = boto3.client("devicefarm")
# 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: DeviceFarmClient = session.client("devicefarm")
Paginators annotations
mypy_boto3_devicefarm.paginator
module contains type annotations for all paginators.
client: DeviceFarmClient = boto3.client("devicefarm")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
get_offering_status_paginator: GetOfferingStatusPaginator = client.get_paginator("get_offering_status")
list_artifacts_paginator: ListArtifactsPaginator = client.get_paginator("list_artifacts")
list_device_instances_paginator: ListDeviceInstancesPaginator = client.get_paginator("list_device_instances")
list_device_pools_paginator: ListDevicePoolsPaginator = client.get_paginator("list_device_pools")
list_devices_paginator: ListDevicesPaginator = client.get_paginator("list_devices")
list_instance_profiles_paginator: ListInstanceProfilesPaginator = client.get_paginator("list_instance_profiles")
list_jobs_paginator: ListJobsPaginator = client.get_paginator("list_jobs")
list_network_profiles_paginator: ListNetworkProfilesPaginator = client.get_paginator("list_network_profiles")
list_offering_promotions_paginator: ListOfferingPromotionsPaginator = client.get_paginator("list_offering_promotions")
list_offering_transactions_paginator: ListOfferingTransactionsPaginator = client.get_paginator("list_offering_transactions")
list_offerings_paginator: ListOfferingsPaginator = client.get_paginator("list_offerings")
list_projects_paginator: ListProjectsPaginator = client.get_paginator("list_projects")
list_remote_access_sessions_paginator: ListRemoteAccessSessionsPaginator = client.get_paginator("list_remote_access_sessions")
list_runs_paginator: ListRunsPaginator = client.get_paginator("list_runs")
list_samples_paginator: ListSamplesPaginator = client.get_paginator("list_samples")
list_suites_paginator: ListSuitesPaginator = client.get_paginator("list_suites")
list_tests_paginator: ListTestsPaginator = client.get_paginator("list_tests")
list_unique_problems_paginator: ListUniqueProblemsPaginator = client.get_paginator("list_unique_problems")
list_uploads_paginator: ListUploadsPaginator = client.get_paginator("list_uploads")
list_vpce_configurations_paginator: ListVPCEConfigurationsPaginator = client.get_paginator("list_vpce_configurations")
Typed dictionations
mypy_boto3_devicefarm.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
def get_structure() -> AccountSettingsTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_devicefarm
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("devicefarm")
session_client = boto3.Session().client("devicefarm")
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-devicefarm-1.14.31.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bad8944ecc2777a2182faea0265a57c211d72e546e74c437e0cfa5979a9ca99 |
|
MD5 | c96a5a12a9f4d89fd94bdf7cd7c6df21 |
|
BLAKE2b-256 | c0729096888f02c9dae7c902c8ff72491cff54f1f0c334841c527bbf43c32167 |
Hashes for mypy_boto3_devicefarm-1.14.31.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 968cebd6abf3dcdce9ad27a6645dd3b4a0fcccf556bb394f7dc1aadb227a1617 |
|
MD5 | ac7948b4c6a8fe91fbe4d359ac476bb2 |
|
BLAKE2b-256 | 13b9b650f3633f6dc48ee314b97f970d66a69e170c7e463dd4315d7d274f724f |