Skip to content

Commit de48810

Browse files
author
ievgeniia ieromenko
committed
mypy fixes
1 parent dd568a4 commit de48810

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

aws_sra_examples/solutions/genai/bedrock_guardrails/lambda/src/sra_lambda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def create_lambda_function( # noqa: CFQ002, CCR001
9696
try:
9797
create_response = self.LAMBDA_CLIENT.create_function(
9898
FunctionName=function_name,
99-
Runtime=runtime,
99+
Runtime=runtime, # type: ignore
100100
Handler=handler,
101101
Role=role_arn,
102102
Code={"ZipFile": open(code_zip_file, "rb").read()}, # noqa: SIM115

aws_sra_examples/solutions/genai/bedrock_guardrails/lambda/src/sra_s3.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ def create_s3_bucket(self, bucket: str) -> None:
8989
"""
9090
if self.REGION != "us-east-1":
9191
create_bucket = self.S3_CLIENT.create_bucket(
92-
ACL="private", Bucket=bucket, CreateBucketConfiguration={"LocationConstraint": self.REGION}, ObjectOwnership="BucketOwnerPreferred"
92+
ACL="private",
93+
Bucket=bucket,
94+
CreateBucketConfiguration={"LocationConstraint": self.REGION}, # type: ignore
95+
ObjectOwnership="BucketOwnerPreferred"
9396
)
9497
else:
9598
create_bucket = self.S3_CLIENT.create_bucket(ACL="private", Bucket=bucket, ObjectOwnership="BucketOwnerPreferred")

0 commit comments

Comments
 (0)