pre-commit FML

This commit is contained in:
Ashwin Bharambe 2025-09-29 21:16:54 -07:00
parent f676c48a97
commit 3b7982c59f

View file

@ -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