{"id":3707,"library":"mypy-boto3-wickr","title":"mypy-boto3-wickr Type Stubs for WickrAdminAPI","description":"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.","status":"active","version":"1.42.55","language":"en","source_language":"en","source_url":"https://github.com/youtype/mypy_boto3_builder","tags":["type-stubs","boto3","aws","mypy","wickr","static-analysis","typing"],"install":[{"cmd":"pip install boto3 mypy-boto3-wickr mypy","lang":"bash","label":"Install with boto3 and mypy"}],"dependencies":[{"reason":"Provides the runtime client for AWS services that these stubs type-hint.","package":"boto3","optional":false},{"reason":"The static type checker that consumes these stubs.","package":"mypy","optional":true},{"reason":"Conditional dependency automatically installed for older Python versions to support modern typing features.","package":"typing-extensions","optional":true}],"imports":[{"note":"Import the typed client for WickrAdminAPI.","symbol":"WickrAdminClient","correct":"from mypy_boto3_wickr.client import WickrAdminClient"},{"note":"Import the typed service resource if using boto3 resources (less common for WickrAdminAPI).","symbol":"WickrAdminServiceResource","correct":"from mypy_boto3_wickr.service_resource import WickrAdminServiceResource"}],"quickstart":{"code":"import boto3\nfrom mypy_boto3_wickr.client import WickrAdminClient\nfrom typing import TYPE_CHECKING\n\n# Instantiate a boto3 client (runtime code)\nwickr_client = boto3.client(\"wickr\")\n\n# Use TYPE_CHECKING block for type hints, not runtime execution\nif TYPE_CHECKING:\n    # This allows mypy to confirm the client type\n    reveal_type(wickr_client)  # Expected: 'WickrAdminClient'\n    typed_wickr_client: WickrAdminClient = wickr_client\n    # Now, typed_wickr_client has full type hints for methods and arguments\n    response = typed_wickr_client.list_memberships() \nelse:\n    # In runtime, wickr_client is just the boto3 client\n    response = wickr_client.list_memberships()\n\nprint(\"ListMemberships response keys:\", response.keys())","lang":"python","description":"This example demonstrates how to instantiate a `boto3` WickrAdmin client and use the `mypy-boto3-wickr` stubs for static type checking. The `TYPE_CHECKING` block ensures that the type hints are only used by type checkers like MyPy and do not affect runtime behavior. You need to run `mypy your_script.py` to see the benefits."},"warnings":[{"fix":"Upgrade to Python 3.9 or newer to continue receiving type stub updates and features.","message":"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.","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.12.0 (affects generated `mypy-boto3-*` packages)"},{"fix":"Ensure your project's `pyproject.toml` or `setup.py` correctly handles PEP 561 type packages. For most users, this is a transparent change handled by pip.","message":"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.","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.12.0 (affects all `mypy-boto3-*` packages)"},{"fix":"Ensure `boto3` is installed alongside `mypy-boto3-wickr` (e.g., `pip install boto3 mypy-boto3-wickr`).","message":"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.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Install `mypy` (`pip install mypy`) and integrate it into your project's CI/CD pipeline or development workflow.","message":"`mypy` (or another static type checker) is required to utilize these type stubs. Without a type checker, these packages have no effect.","severity":"gotcha","affected_versions":"All versions"},{"fix":"If your code explicitly imports or references generated `TypeDef` names, you may need to update them according to the new naming conventions. Consult the specific `mypy-boto3-wickr` package's `__init__.py` or documentation for exact type names.","message":"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.","severity":"breaking","affected_versions":"mypy-boto3-builder >= 8.9.0 (affects generated `mypy-boto3-*` packages)"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}