mypy-boto3-sqs
mypy-boto3-sqs provides type annotations for the AWS SQS service in boto3, enhancing code completion and type checking. The current version is 1.42.3, released on December 4, 2025. The library is actively maintained, with regular updates to align with boto3 releases.
Warnings
- breaking Removed support for Python 3.8 in version 8.12.0
- gotcha Dynamic class generation in boto3 can lead to unexpected type results
Install
-
pip install 'boto3-stubs[sqs]' -
pip install 'boto3-stubs-lite[sqs]' -
pip install mypy-boto3-sqs
Imports
- SQSClient
from mypy_boto3_sqs import SQSClient
Quickstart
from mypy_boto3_sqs import SQSClient
import boto3
client: SQSClient = boto3.client('sqs')
response = client.send_message(
QueueUrl='https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue',
MessageBody='Hello, World!'
)
print(response['MessageId'])