mypy-boto3-signer
mypy-boto3-signer provides type annotations for the `boto3` AWS SDK's Signer service client (version 1.42.7), generated with `mypy-boto3-builder 8.12.0`. It offers type hints for the Signer client, paginators, waiters, literals, and typed dictionaries, enhancing static analysis and IDE autocompletion for `boto3` users. The project is actively maintained, with updates frequently synchronized with `boto3` releases.
Warnings
- breaking Support for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0 (which generated this stub package). Projects still on Python 3.8 will need to upgrade their Python version to use this and newer stub releases.
- breaking Beginning with `mypy-boto3-builder` version 8.9.0, there were changes to TypeDef naming conventions for some services (e.g., shortening argument TypeDefs and moving 'Extra' postfixes). While not specifically for 'signer', this is a general pattern that might affect explicit `TypeDef` imports if they matched such patterns.
- gotcha Starting with `mypy-boto3-builder` version 8.12.0, packages migrated to PEP 561. This is a fundamental change in how type checkers locate stubs and might affect older `mypy` versions or non-standard project setups.
- gotcha PyCharm users might experience slow performance with `Literal` overloads in `boto3-stubs`. It is recommended to use the `boto3-stubs-lite` variants (e.g., `mypy-boto3-signer-lite`) or disable PyCharm's internal type checker and use `mypy` or `pyright` instead for optimal performance.
- gotcha In some IDEs (e.g., VSCode's Python extension without Pylance, or older PyCharm versions), explicit type annotations for `boto3.client` calls may be necessary to ensure full code autocompletion and accurate type hints, due to limitations in function overload support.
Install
-
pip install mypy-boto3-signer -
pip install 'boto3-stubs[signer]' # recommended for integrating with boto3-stubs
Imports
- SignerClient
from mypy_boto3_signer import SignerClient
- AddProfilePermissionRequestTypeDef
from mypy_boto3_signer.type_defs import AddProfilePermissionRequestTypeDef
- CategoryType
from mypy_boto3_signer.literals import CategoryType
- SuccessfulSigningJobWaiter
from mypy_boto3_signer.waiter import SuccessfulSigningJobWaiter
Quickstart
import boto3
from mypy_boto3_signer import SignerClient
def get_signer_client() -> SignerClient:
# mypy will correctly infer the type from boto3.client if mypy-boto3-signer is installed
# Explicit annotation is often optional but good for clarity in some IDEs.
client: SignerClient = boto3.client("signer")
return client
client = get_signer_client()
# Example usage with type-checked method calls (will show autocompletion):
# response = client.list_signing_jobs(status="Completed")
# print(response)