fix: avoid newer type syntax

This commit is contained in:
stainless-app[bot] 2025-08-27 02:22:11 +00:00
parent c11a24e28e
commit 6eae86427a

View file

@ -304,7 +304,7 @@ class BaseModel(pydantic.BaseModel):
exclude_none=exclude_none,
)
return cast(dict[str, Any], json_safe(dumped)) if mode == "json" else dumped
return cast("dict[str, Any]", json_safe(dumped)) if mode == "json" else dumped
@override
def model_dump_json(