mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-11 19:56:03 +00:00
address feedback
This commit is contained in:
parent
9347e49414
commit
24667e43e0
3 changed files with 17 additions and 14 deletions
|
|
@ -55,6 +55,9 @@ def _create_s3_client(config: S3FilesImplConfig) -> S3Client:
|
|||
}
|
||||
)
|
||||
|
||||
# Both cast and type:ignore are needed here:
|
||||
# - cast tells mypy the return type for downstream usage (S3Client vs generic client)
|
||||
# - type:ignore suppresses the call-overload error from boto3's complex overloaded signatures
|
||||
return cast("S3Client", boto3.client("s3", **s3_config)) # type: ignore[call-overload]
|
||||
|
||||
except (BotoCoreError, NoCredentialsError) as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue