mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-11 19:56:03 +00:00
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
This commit is contained in:
parent
24667e43e0
commit
99380de095
1 changed files with 2 additions and 0 deletions
|
|
@ -4,6 +4,8 @@
|
||||||
# This source code is licensed under the terms described in the LICENSE file in
|
# This source code is licensed under the terms described in the LICENSE file in
|
||||||
# the root directory of this source tree.
|
# the root directory of this source tree.
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
import uuid
|
import uuid
|
||||||
from datetime import UTC, datetime
|
from datetime import UTC, datetime
|
||||||
from typing import TYPE_CHECKING, Annotated, Any, cast
|
from typing import TYPE_CHECKING, Annotated, Any, cast
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue