Type annotations for boto3.ResourceGroups 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-resource-groups
Type annotations for boto3.ResourceGroups 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 ResourceGroups
service.
python -m pip install boto3-stubs[resource-groups]
Use boto3
with mypy_boto3_resource_groups
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_resource_groups import ResourceGroupsClient
# Now mypy can check if your code is valid.
client: ResourceGroupsClient = boto3.client("resource-groups")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: ResourceGroupsClient = session.client("resource-groups")
# Annotated paginators are included as well
import mypy_boto3_resource_groups.paginator as resource_groups_paginators
list_group_resources_paginator: resource_groups_paginators.ListGroupResourcesPaginator = client.get_paginator("list_group_resources")
list_groups_paginator: resource_groups_paginators.ListGroupsPaginator = client.get_paginator("list_groups")
search_resources_paginator: resource_groups_paginators.SearchResourcesPaginator = client.get_paginator("search_resources")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_resource_groups
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("resource-groups")
session_client = boto3.Session().client("resource-groups")
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-resource-groups-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 989762e38aab291d5b123f897767f18e3fed1acc4392b36c3771a5a5835193f7 |
|
MD5 | 22509fa952ededaceb22cd4cdc34da14 |
|
BLAKE2b-256 | 35bf69ba2a251eb91208c065f543960b2c1b523300cb57b96794eaf37ad07403 |
Hashes for mypy_boto3_resource_groups-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0de0448d9c31f80332b4d1e8f22bb19af4d3376d023894cce988d5060d05a19 |
|
MD5 | 1b9f4153476c4c3dc0f53ee89618d03d |
|
BLAKE2b-256 | c0573cf715150199d52b39c2389b7ac66ebbfc8338dd678a37456b4a020731a7 |