diff --git a/mypy_boto3_builder/type_maps/method_type_map.py b/mypy_boto3_builder/type_maps/method_type_map.py index d2e15a74..1ed0bb23 100644 --- a/mypy_boto3_builder/type_maps/method_type_map.py +++ b/mypy_boto3_builder/type_maps/method_type_map.py @@ -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, }, @@ -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 diff --git a/uv.lock b/uv.lock index 25a0a5cb..5ffed507 100644 --- a/uv.lock +++ b/uv.lock @@ -80,43 +80,43 @@ wheels = [ [[package]] name = "boto3" -version = "1.35.76" +version = "1.35.78" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "botocore" }, { name = "jmespath" }, { name = "s3transfer" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/7a/24/31f56d43419dadf71d9d30192ebc1577fdef2e703622e1fe4cf370cce98f/boto3-1.35.76.tar.gz", hash = "sha256:31ddcdb6f15dace2b68f6a0f11bdb58dd3ae79b8a3ccb174ff811ef0bbf938e0", size = 111023 } +sdist = { url = "https://files.pythonhosted.org/packages/23/f0/20021a077f56ed1673459aba954bdc308ea76a9b86a2f0a205a8ccff94c4/boto3-1.35.78.tar.gz", hash = "sha256:fc8001519c8842e766ad3793bde3fbd0bb39e821a582fc12cf67876b8f3cf7f1", size = 111027 } wheels = [ - { url = "https://files.pythonhosted.org/packages/a2/d6/36ed30de3cf85d2431c3ef9739e731ad8f8bfabeb8f556e35992a55d5834/boto3-1.35.76-py3-none-any.whl", hash = "sha256:69458399f41f57a50770c8974796d96978bcca44915c260319696bb43e47dffd", size = 139178 }, + { url = "https://files.pythonhosted.org/packages/1c/ce/d957fa3c6e765bd671ff6c605d04c7d0abfb4aa0243ac95cd7781d8ddbff/boto3-1.35.78-py3-none-any.whl", hash = "sha256:5ef7166fe5060637b92af8dc152cd7acecf96b3fc9c5456706a886cadb534391", size = 139179 }, ] [[package]] name = "boto3-stubs" -version = "1.35.76" +version = "1.35.78" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "botocore-stubs" }, { name = "types-s3transfer" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/25/5d/45f3aba97f789e5547a6ebeea85d060f7fd9a8992ca8562ada8633034717/boto3_stubs-1.35.76.tar.gz", hash = "sha256:32109b6a0c9720bf7c2e389655479c6dab4ee33c622e2cf2746c9e5ec527bae3", size = 94976 } +sdist = { url = "https://files.pythonhosted.org/packages/08/c3/8a2885f571449bd6e6e0d3f4a0e5c4081534281c8976b4b11a38abf6e05d/boto3_stubs-1.35.78.tar.gz", hash = "sha256:5d023cf1fcc723dfdba29653e0ad9b9933985c813a25bc21807e21eab81e21b4", size = 95492 } wheels = [ - { url = "https://files.pythonhosted.org/packages/aa/66/2103cb4b197fdddc3cd95546517fa4412cffbc89d7cb16ec4366fc535e71/boto3_stubs-1.35.76-py3-none-any.whl", hash = "sha256:882f69f02cca48176fa3adf7f354fe64a65268423c9696871d0f4d098af35431", size = 65004 }, + { url = "https://files.pythonhosted.org/packages/ab/8a/816cd8701dc581320def70ab4b5f75046eeb68afe1300d7d55caa8b27fb3/boto3_stubs-1.35.78-py3-none-any.whl", hash = "sha256:bb7824c09cbf868940b8d500e7f4ca99cb7e074c0f86771f832ce15c33a313bd", size = 65170 }, ] [[package]] name = "botocore" -version = "1.35.76" +version = "1.35.78" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "jmespath" }, { name = "python-dateutil" }, { name = "urllib3" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/bb/73/c3f127c48869a3555e59c5cd381de119d96a02912dc789443fdaefa44807/botocore-1.35.76.tar.gz", hash = "sha256:a75a42ae53395796b8300c5fefb2d65a8696dc40dc85e49cf3a769e0c0202b13", size = 13439455 } +sdist = { url = "https://files.pythonhosted.org/packages/54/55/1a48301e947c552734888e5cce368a3961b538eb26d534ef9e8f0b0a78a1/botocore-1.35.78.tar.gz", hash = "sha256:6905036c25449ae8dba5e950e4b908e4b8a6fe6b516bf61e007ecb62fa21f323", size = 13447092 } wheels = [ - { url = "https://files.pythonhosted.org/packages/2f/c1/b6dc5e5d11efd493892daf4466ab720e4eb9c294aa05d7e571b27edc7842/botocore-1.35.76-py3-none-any.whl", hash = "sha256:b4729d12d00267b3185628f83543917b6caae292385230ab464067621aa086af", size = 13243531 }, + { url = "https://files.pythonhosted.org/packages/1c/25/8fb6515813a7773c92305e762fe15ad011a6bf52a60febcd442be80480c4/botocore-1.35.78-py3-none-any.whl", hash = "sha256:41c37bd7c0326f25122f33ec84fb80fc0a14d7fcc9961431b0e57568e88c9cb5", size = 13249477 }, ] [[package]] @@ -595,7 +595,7 @@ wheels = [ [[package]] name = "mypy-boto3-builder" -version = "8.6.1" +version = "8.6.2" source = { editable = "." } dependencies = [ { name = "boto3" }, @@ -1160,15 +1160,15 @@ wheels = [ [[package]] name = "types-boto3" -version = "1.35.76" +version = "1.35.78" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "botocore-stubs" }, { name = "types-s3transfer" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/65/c7/af517b4bd68d70d16fddd9bb7399e2a97fc958f76f159e21cf9ac20c6cea/types_boto3-1.35.76.tar.gz", hash = "sha256:e6167f509ee1e990a4bc55cca40323efa5a0333008f7134274f1393665505df4", size = 95478 } +sdist = { url = "https://files.pythonhosted.org/packages/ab/d1/5ac21aa1e807e8f95866ad61464d4d64846376d16f5ee712e5a2c75f7b07/types_boto3-1.35.78.tar.gz", hash = "sha256:dc5d16b717806fb555f45dec4a3eb07cad0ade4909b2e61b9edb8f0fe0c25ad8", size = 95980 } wheels = [ - { url = "https://files.pythonhosted.org/packages/6c/73/ab60452ac9c95e113c0f9c8af0075ae98dcaedda8315c56817b49db8d77e/types_boto3-1.35.76-py3-none-any.whl", hash = "sha256:c1d2043f977ad45ef35cfb238218af45e548f3e128b89cc4da1f731de45fe88c", size = 64915 }, + { url = "https://files.pythonhosted.org/packages/34/be/e3be821fa115ce51646794adefbf65ac6b3f58c59f8d4725b39ba527c1db/types_boto3-1.35.78-py3-none-any.whl", hash = "sha256:470eefe4e8280edf611a2c1a1418da6c86eda2ceba7f4647122bb780140f16a3", size = 65083 }, ] [[package]]