Closed tas12740 closed 1 year ago
Thank you for the report!
I will try to fix is by Monday.
Aaaand, finally it is Monday. :)
Adding EventStream support was more complex than I expected. Finally, the code is in place, so expect a new release tomorrow.
Published mypy_boto3_s3_package 1.28.3.post2
with the fix included.
Please let me know if it works as it should when you have time.
I am really enjoying this project so far and appreciate all the work that has gone into it! It's providing a lot of utility on one of the projects on which I'm working. With that said, I'm running into an error with a particular S3 call.
Describe the bug As documented in the mypy_boto3_s3 docs, the
Payload
key ofS3.Client.select_object_content
returns aTypedDict
. As far as I can understand it from the boto3 docs, thePayload
key is abotocore.eventstream.EventStream
(doc). That is, instead of being adict
, it is anIterable
ofTypedDict
results.To Reproduce Steps to reproduce the behavior:
boto3-stubs[s3]
mypy
/pyright
on the following code sampleActual output
Expected output
No typing errors thrown.
Additional context
OS: Ubuntu 20.04 on Microsoft Windows Subsystem for Linux (WSL)
sys.version
:3.8.10 (default, Mar 13 2023, 10:26:41) \n[GCC 9.4.0]
boto3-stubs
installation method:pip
boto3-stubs
version:1.26.120
bogo3-stubs-s3
version:1.26.62
boto3
version:1.18.65