-
-
Notifications
You must be signed in to change notification settings - Fork 41
Closed
Labels
🎉 releasedChanges were included to the latest releaseChanges were included to the latest release🐞 bugSomething isn't workingSomething isn't working👋 response neededAwaiting response from a reporterAwaiting response from a reporter
Description
Describe the bug
LastEvaluatedKey in QueryOutputTableTypeDef is not treated as Optional by boto3-stubs despite it only being present if a DynamoDB query requires pagination. The documentation for boto3 implies that it is optional here.
Happy to submit a PR, but not 100% sure how the type builder works yet.
To Reproduce
Steps to reproduce the behavior:
- Install
boto3-stubs[...] - Run
mypyon the following code sample
import boto3
from mypy_boto3_dynamodb.type_defs import QueryOutputTableTypeDef
response: QueryOutputTableTypeDef = {
"Items": [],
"ConsumedCapacity": {},
"ResponseMetadata": {
"RequestId": "",
"HTTPStatusCode": 200,
"HTTPHeaders": {},
"RetryAttempts": 0,
},
"Count": 0,
"ScannedCount": 0,
# "LastEvaluatedKey": {},
}Actual output
error: Missing key "LastEvaluatedKey" for TypedDict "QueryOutputTableTypeDef" [typeddict-item]
Expected output
Success: no issues found in 1 source file
Additional context
Ubuntu 20.04, installed with poetry add boto3-stubs, boto3 version 1.34.146.
vemel
Metadata
Metadata
Assignees
Labels
🎉 releasedChanges were included to the latest releaseChanges were included to the latest release🐞 bugSomething isn't workingSomething isn't working👋 response neededAwaiting response from a reporterAwaiting response from a reporter