mypy-boto3-wickr Type Stubs for WickrAdminAPI
mypy-boto3-wickr provides type annotations for the boto3 WickrAdminAPI service, allowing static type checking with tools like MyPy. It is part of the `mypy-boto3` family, generated with `mypy-boto3-builder`, and currently at version 1.42.55. The `mypy-boto3` project generally releases updates in sync with new boto3 and AWS service releases.
Warnings
- breaking Python 3.8 support was removed for all `mypy-boto3-builder` generated packages, including `mypy-boto3-wickr`, starting with builder version 8.12.0. Users on Python 3.8 will not receive updates or new versions of these stubs.
- breaking All `mypy-boto3-builder` generated packages migrated to PEP 561-compliant packaging in version 8.12.0. While this improves type stub discovery, it may require adjustments in projects that manually configured type stub paths.
- gotcha These packages provide type stubs only. They do not contain any runtime code or functionality. You must have `boto3` installed to use the AWS services at runtime.
- gotcha `mypy` (or another static type checker) is required to utilize these type stubs. Without a type checker, these packages have no effect.
- breaking Type definition naming conventions changed in `mypy-boto3-builder` version 8.9.0. Specifically, `TypeDef`s for packed method arguments now use shorter names (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`), and conflicting `Extra` postfixes moved to the end.
Install
-
pip install boto3 mypy-boto3-wickr mypy
Imports
- WickrAdminClient
from mypy_boto3_wickr.client import WickrAdminClient
- WickrAdminServiceResource
from mypy_boto3_wickr.service_resource import WickrAdminServiceResource
Quickstart
import boto3
from mypy_boto3_wickr.client import WickrAdminClient
from typing import TYPE_CHECKING
# Instantiate a boto3 client (runtime code)
wickr_client = boto3.client("wickr")
# Use TYPE_CHECKING block for type hints, not runtime execution
if TYPE_CHECKING:
# This allows mypy to confirm the client type
reveal_type(wickr_client) # Expected: 'WickrAdminClient'
typed_wickr_client: WickrAdminClient = wickr_client
# Now, typed_wickr_client has full type hints for methods and arguments
response = typed_wickr_client.list_memberships()
else:
# In runtime, wickr_client is just the boto3 client
response = wickr_client.list_memberships()
print("ListMemberships response keys:", response.keys())