Skip to content

Commit c897052

Browse files
chore(internal): update pydantic v1 compat helpers (#504)
1 parent aab8293 commit c897052

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/finch/_compat.py

+2
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,14 @@ def model_dump(
136136
exclude: IncEx = None,
137137
exclude_unset: bool = False,
138138
exclude_defaults: bool = False,
139+
warnings: bool = True,
139140
) -> dict[str, Any]:
140141
if PYDANTIC_V2:
141142
return model.model_dump(
142143
exclude=exclude,
143144
exclude_unset=exclude_unset,
144145
exclude_defaults=exclude_defaults,
146+
warnings=warnings,
145147
)
146148
return cast(
147149
"dict[str, Any]",

0 commit comments

Comments
 (0)