From 99380de095fa4c040b99b3b3686b0dc6be71d06d Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Tue, 28 Oct 2025 10:48:45 -0700 Subject: [PATCH] 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 --- src/llama_stack/providers/remote/files/s3/files.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/llama_stack/providers/remote/files/s3/files.py b/src/llama_stack/providers/remote/files/s3/files.py index 233eb410e..76261bdf4 100644 --- a/src/llama_stack/providers/remote/files/s3/files.py +++ b/src/llama_stack/providers/remote/files/s3/files.py @@ -4,6 +4,8 @@ # This source code is licensed under the terms described in the LICENSE file in # the root directory of this source tree. +from __future__ import annotations + import uuid from datetime import UTC, datetime from typing import TYPE_CHECKING, Annotated, Any, cast