Skip to content

Commit

Permalink
Replicate old logic for ContentMD5 argument removal
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Dec 10, 2024
1 parent a0d3dad commit 6d54398
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 14 deletions.
27 changes: 26 additions & 1 deletion mypy_boto3_builder/type_maps/method_type_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
ALL: {
"SSECustomerKey": TypeUnion([Type.str, Type.bytes]),
"CopySourceSSECustomerKey": TypeUnion([Type.str, Type.bytes]),
"ContentMD5": Type.RemoveArgument,
"SSECustomerKeyMD5": Type.RemoveArgument,
"CopySourceSSECustomerKeyMD5": Type.RemoveArgument,
},
Expand All @@ -68,14 +67,40 @@
"copy_object": {"CopySource": CopySourceOrStrTypeDef},
"upload_part_copy": {"CopySource": CopySourceOrStrTypeDef},
"copy": {"CopySource": CopySourceTypeDef},
"put_bucket_acl": {"ContentMD5": Type.RemoveArgument},
"put_bucket_cors": {"ContentMD5": Type.RemoveArgument},
"put_bucket_lifecycle": {"ContentMD5": Type.RemoveArgument},
"put_bucket_logging": {"ContentMD5": Type.RemoveArgument},
"put_bucket_notification": {"ContentMD5": Type.RemoveArgument},
"put_bucket_policy": {"ContentMD5": Type.RemoveArgument},
"put_bucket_replication": {"ContentMD5": Type.RemoveArgument},
"put_bucket_request_payment": {"ContentMD5": Type.RemoveArgument},
"put_bucket_tagging": {"ContentMD5": Type.RemoveArgument},
"put_bucket_versioning": {"ContentMD5": Type.RemoveArgument},
"put_bucket_website": {"ContentMD5": Type.RemoveArgument},
"put_object_acl": {"ContentMD5": Type.RemoveArgument},
},
"MultipartUploadPart": {
"copy_from": {"CopySource": CopySourceOrStrTypeDef},
},
"Bucket": {"copy": {"CopySource": CopySourceTypeDef}},
"BucketAcl": {"put": {"ContentMD5": Type.RemoveArgument}},
"BucketCors": {"put": {"ContentMD5": Type.RemoveArgument}},
"BucketLifecycle": {"put": {"ContentMD5": Type.RemoveArgument}},
"BucketLogging": {"put": {"ContentMD5": Type.RemoveArgument}},
"BucketPolicy": {"put": {"ContentMD5": Type.RemoveArgument}},
"BucketRequestPayment": {"put": {"ContentMD5": Type.RemoveArgument}},
"BucketTagging": {"put": {"ContentMD5": Type.RemoveArgument}},
"BucketVersioning": {
"enable": {"ContentMD5": Type.RemoveArgument},
"put": {"ContentMD5": Type.RemoveArgument},
"suspend": {"ContentMD5": Type.RemoveArgument},
},
"BucketWebsite": {"put": {"ContentMD5": Type.RemoveArgument}},
"Object": {
"copy": {"CopySource": CopySourceTypeDef},
"copy_from": {"CopySource": CopySourceOrStrTypeDef},
"put": {"ContentMD5": Type.RemoveArgument},
},
"ObjectSummary": {"copy_from": {"CopySource": CopySourceOrStrTypeDef}},
# FIXME: https://github.com/boto/boto3/issues/3501
Expand Down
26 changes: 13 additions & 13 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6d54398

Please sign in to comment.