Type annotations for boto3.DeviceFarm 1.14.7 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-devicefarm
Type annotations for boto3.DeviceFarm 1.14.7 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.7.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb4a5daa5b585f14e83c0864b8b4a245b98300c0185b3180c9cb5ac928a195e8 |
|
MD5 | 0a3bcd1cd28d214bf25afda08014482f |
|
BLAKE2b-256 | 4ea56187a9903efd053dd04ea18a6df6fccea3eb5b9a2ef7c73e10ab3f4ed25b |
Hashes for mypy_boto3_devicefarm-1.14.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 927ce850a2a14e32461219dcda98f0b8b916b368d3297ef672dd5004f5fd1e41 |
|
MD5 | ba572ea4c9ccc7e2e0c4e4462237af3b |
|
BLAKE2b-256 | 725a1577b6d2ecd22450ea319b354b60580b6e0e8d3011b433389de0c2d1362e |