Skip to content

Commit

Permalink
remove unused type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
giancarloromeo committed Sep 20, 2024
1 parent 3d734e0 commit c667921
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/aws-library/src/aws_library/s3/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async def create(
)
assert isinstance(session_client, ClientCreatorContext) # nosec
exit_stack = contextlib.AsyncExitStack()
s3_client = cast(S3Client, await exit_stack.enter_async_context(session_client)) # type: ignore[arg-type]
s3_client = cast(S3Client, await exit_stack.enter_async_context(session_client))
# NOTE: this triggers a botocore.exception.ClientError in case the connection is not made to the S3 backend
await s3_client.list_buckets()

Expand Down
2 changes: 1 addition & 1 deletion packages/aws-library/src/aws_library/ssm/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async def create(cls, settings: SSMSettings) -> "SimcoreSSMAPI":
)
assert isinstance(session_client, ClientCreatorContext) # nosec
exit_stack = contextlib.AsyncExitStack()
ec2_client = cast(SSMClient, await exit_stack.enter_async_context(session_client)) # type: ignore[arg-type]
ec2_client = cast(SSMClient, await exit_stack.enter_async_context(session_client))
return cls(ec2_client, session, exit_stack)

async def close(self) -> None:
Expand Down

0 comments on commit c667921

Please sign in to comment.