Misleading return type definition for table.get_item() #241
Labels
🐞 bug
Something isn't working
🎉 released
Changes were included to the latest release
👋 response needed
Awaiting response from a reporter
Describe the bug
The current TypedDict definition for the DynamoDB table
get_item()
methodGetItemOutputTableTypeDef
contains "Item" as a required key, however, this is not true. According to the AWS documentation:Currently,
mypy
reports any branch of code that questions the existence of the "Item" key as an unreachable code.To Reproduce
Steps to reproduce the behavior:
boto3-stubs[dynamodb]
mypy
on the following code sampleActual output
Expected output
No
mypy
reported errors.Additional context
Windows 11,
boto3-stubs
installatalled via pipenv,boto3
version 1.34.19The text was updated successfully, but these errors were encountered: