Open mdavis-xyz opened 1 year ago
Thanks @mdavis-xyz for reporting this issue.
@tim-finnigan I would like to fix this issue, So we have to fix the document or code?
I think we can just change the documentation. An int is more intuitive than a string.
think we can just change the documentation.
And the stubs, right?
Wanted to raise this again - we use autogenerated type hints (https://github.com/vemel/mypy_boto3_builder) which make it very easy to introduce this runtime bug. I'm be happy to help fix this although I have to admit I don't know where the particular change would be (I assume the docs are autogenerated somehow...).
@ztravis @hannes-ucsc
The issue was addressed in the latest boto3-stubs
. Short explanation: https://github.com/youtype/mypy_boto3_builder/releases/tag/7.26.0
If the issue is related to auto-generated type annotations for boto3
, please report them here: https://github.com/youtype/mypy_boto3_builder/issues
Thank you! I can confirm that release 1.35.1 of boto3-stubs fixes the issue for me.
Describe the issue
The documentation for S3 multipart upload
Part
says:If I use a string (
Part('1')
) I get an error. If I use an intPart(1)
I don't get an error. So the library behavior does not match the documentation.Steps to reproduce
MWE
Run this script.
Expected behavior
Script completes successfully using
Part('1')
. Multipart upload completed.Actual behavior
If I change
Part('1')
toPart(1)
the exception is no longer thrown.Links
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.MultipartUpload.Part