Type annotations for boto3.WorkDocs 1.13.24 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-workdocs
Type annotations for boto3.WorkDocs 1.13.24 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.24.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 536a644a875c18ba4dffcb00ff1a9283bfe13ec532daf4c5144fc91d3d863c7e |
|
MD5 | c49d565614c849573a4a5ba0e285ad7f |
|
BLAKE2b-256 | bf3337e61d17fd294949dd5aaf50bc3377061623b439c33ea3a883ec69aa5069 |
Hashes for mypy_boto3_workdocs-1.13.24.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1248005bdc103d90025ac0e0e40a6c1571d135b8ce4f90e8912b6eaeeea5f5ef |
|
MD5 | 43320d79ac9fe4c0174a27d06a4a4466 |
|
BLAKE2b-256 | 57f404919575db295ae83eb19b26ef2dcea7b275b91d14b1df27f946cb5565d3 |