Type annotations for boto3.ApplicationDiscoveryService 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-discovery
Type annotations for boto3.ApplicationDiscoveryService 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 ApplicationDiscoveryService
service.
python -m pip install boto3-stubs[discovery]
Use boto3
with mypy_boto3_discovery
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_discovery import ApplicationDiscoveryServiceClient
# Now mypy can check if your code is valid.
client: ApplicationDiscoveryServiceClient = boto3.client("discovery")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: ApplicationDiscoveryServiceClient = session.client("discovery")
# Annotated paginators are included as well
import mypy_boto3_discovery.paginator as discovery_paginators
describe_agents_paginator: discovery_paginators.DescribeAgentsPaginator = client.get_paginator("describe_agents")
describe_continuous_exports_paginator: discovery_paginators.DescribeContinuousExportsPaginator = client.get_paginator("describe_continuous_exports")
describe_export_configurations_paginator: discovery_paginators.DescribeExportConfigurationsPaginator = client.get_paginator("describe_export_configurations")
describe_export_tasks_paginator: discovery_paginators.DescribeExportTasksPaginator = client.get_paginator("describe_export_tasks")
describe_tags_paginator: discovery_paginators.DescribeTagsPaginator = client.get_paginator("describe_tags")
list_configurations_paginator: discovery_paginators.ListConfigurationsPaginator = client.get_paginator("list_configurations")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_discovery
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("discovery")
session_client = boto3.Session().client("discovery")
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-discovery-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5174faeee7e488e8a9bf102acf3014dbe47111972942b6106560b66e8f480e9 |
|
MD5 | af7ec76204cadcd445feea88630a8e5c |
|
BLAKE2b-256 | df52c85ad44b8f69ae14c93233bff34f1fda42c1fdd5ff83e52a8e03da2653cb |
Hashes for mypy_boto3_discovery-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ba79dd3b5dfc54b10cf58c829057d6ac8d52aa0aa60b4fd1496af60f8ac9354 |
|
MD5 | 31cc80b759a32795a8e8ea24cab1809b |
|
BLAKE2b-256 | c8de255ed3384649f2a6f3a577ab82e33a34ede0d7fe921a7f06cf7d078165e3 |