From 3b7982c59fae52d07157317e74104aa8cb7c7694 Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Mon, 29 Sep 2025 21:16:54 -0700 Subject: [PATCH] pre-commit FML --- llama_stack/strong_typing/inspection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama_stack/strong_typing/inspection.py b/llama_stack/strong_typing/inspection.py index 00afa31a6..c786793a2 100644 --- a/llama_stack/strong_typing/inspection.py +++ b/llama_stack/strong_typing/inspection.py @@ -567,7 +567,7 @@ def get_class_properties(typ: type) -> Iterable[Tuple[str, type | str]]: if is_dataclass_type(typ): return ((field.name, field.type) for field in dataclasses.fields(typ)) - elif hasattr(typ, 'model_fields'): + elif hasattr(typ, "model_fields"): # Pydantic BaseModel - use model_fields to exclude ClassVar and other non-field attributes # Reconstruct Annotated type if discriminator exists to preserve metadata from typing import Annotated