Type annotations for boto3.WorkDocs 1.13.26 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-workdocs
Type annotations for boto3.WorkDocs 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 WorkDocs
service.
python -m pip install boto3-stubs[workdocs]
# update installed packages index for automated type discovery
python -m mypy_boto3
Use boto3
with mypy_boto3_workdocs
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_workdocs import WorkDocsClient
# Now mypy can check if your code is valid.
client: WorkDocsClient = boto3.client("workdocs")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: WorkDocsClient = session.client("workdocs")
# Annotated paginators are included as well
import mypy_boto3_workdocs.paginator as workdocs_paginators
describe_activities_paginator: workdocs_paginators.DescribeActivitiesPaginator = client.get_paginator("describe_activities")
describe_comments_paginator: workdocs_paginators.DescribeCommentsPaginator = client.get_paginator("describe_comments")
describe_document_versions_paginator: workdocs_paginators.DescribeDocumentVersionsPaginator = client.get_paginator("describe_document_versions")
describe_folder_contents_paginator: workdocs_paginators.DescribeFolderContentsPaginator = client.get_paginator("describe_folder_contents")
describe_groups_paginator: workdocs_paginators.DescribeGroupsPaginator = client.get_paginator("describe_groups")
describe_notification_subscriptions_paginator: workdocs_paginators.DescribeNotificationSubscriptionsPaginator = client.get_paginator("describe_notification_subscriptions")
describe_resource_permissions_paginator: workdocs_paginators.DescribeResourcePermissionsPaginator = client.get_paginator("describe_resource_permissions")
describe_root_folders_paginator: workdocs_paginators.DescribeRootFoldersPaginator = client.get_paginator("describe_root_folders")
describe_users_paginator: workdocs_paginators.DescribeUsersPaginator = client.get_paginator("describe_users")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_workdocs
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_workdocs as workdocs
from mypy_boto3_workdocs import WorkDocsClient
# with these
from mypy_boto3 import workdocs
from mypy_boto3.workdocs import WorkDocsClient
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-workdocs-1.13.26.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06ce3773617a1fcd1ce037edb4aa15392e0307dbc9c65ba1202c4aa4f5980460 |
|
MD5 | 9f70644402859363f57427fb4d3668b9 |
|
BLAKE2b-256 | 9d075ff0c2e19eaab3d32377f4a1c57cc47d739dcdf2147a9b1b73aef3c9b110 |
Hashes for mypy_boto3_workdocs-1.13.26.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b0fcaf09640d041e8e501134bed39bc5974f713a770addf8c17f3fcc39a1cbc |
|
MD5 | ff0e3dcbac937f9d2f695bffc5cd07b4 |
|
BLAKE2b-256 | 07198a9d7e63e13d2932c1e3d9c96ba693ced4e7d6a61a5719e98dd26484ae92 |