Closed Weber-Tr closed 1 year ago
Thank you for the report! Yes, boto3
replaces AttributeValue
handling not only for Table
resource and Client
, but also for paginators. Will be fixed soon.
Fix in the latest release. Please update to mypy-boto3-dynamodb 1.28.27
and let me know if it works as it should.
Describe the bug If you try to use the query paginator returned items always fails by the type validation. The page response Type is QueryOutputTableTypeDef and refers to TableAttributeValueTypeDef for all item attribute values. TableAttributeValueTypeDef is a Union which does not expect data types. I would that the query page item is of type QueryOutputTypeDef instead.
To Reproduce First case:
Second case:
Actual output
Expected output
Additional context MacOS,
boto3
1.28.20