Closed fizyk closed 1 year ago
Thank you for the report!
Will be fixed today.
Fixed in mypy-boto3-s3 1.28.16
. Please update and let me know if it works as it should for you.
Thank you! That works :)
Thanks for testing the new version so quickly! Please let me know if you encounter any other issues, or have any feature requests.
Describe the bug In between boto3/boto3-stubs 1.28.9 and 1.28.15 and botocore/botocore-stubs 1.31.9 to 1.31.15 there was a change to Table.get_item typing of GetItemOutputTypeDef which now states that key "Item" is
Dict[str, AttributeValueTypeDef]
. While in reality it's closer to what put_item is typed as:The AttributeValueTypeDef type requires additional layer of mapping to pass typing check which simple is not there in the resulting data.
To Reproduce Steps to reproduce the behavior:
boto3-stubs[...]
mypy
/pyright
on the following code sampleActual output
Expected output
Additional context Your OS,
boto3-stubs
installation method,boto3
version, etc.Plus dev packages:
I'm using pipenv: https://github.com/ClearcodeHQ/pytest-dynamodb/blob/dependabot/pip/boto3-1.28.15/Pipfile https://github.com/ClearcodeHQ/pytest-dynamodb/blob/dependabot/pip/boto3-1.28.15/Pipfile.lock
Full diff of updates that arrived: https://github.com/ClearcodeHQ/pytest-dynamodb/pull/1208/files