Skip to content

Commit 99380de

Browse files
committed
fix(types): add future annotations import for S3Client type hints
Add 'from __future__ import annotations' to enable postponed evaluation of annotations. This allows S3Client type hints (imported only under TYPE_CHECKING) to work correctly at runtime without NameError. Fixes unit test collection error:NameError: name 'S3Client' is not defined
1 parent 24667e4 commit 99380de

File tree

1 file changed

+2
-0
lines changed
  • src/llama_stack/providers/remote/files/s3

1 file changed

+2
-0
lines changed

src/llama_stack/providers/remote/files/s3/files.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# This source code is licensed under the terms described in the LICENSE file in
55
# the root directory of this source tree.
66

7+
from __future__ import annotations
8+
79
import uuid
810
from datetime import UTC, datetime
911
from typing import TYPE_CHECKING, Annotated, Any, cast

0 commit comments

Comments
 (0)