From 1f9d3aead62ea195e3d7f39a3dea3963428d71c7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 11:16:31 +0000 Subject: [PATCH] chore(internal): update pydantic v1 compat helpers (#529) --- src/modern_treasury/_compat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modern_treasury/_compat.py b/src/modern_treasury/_compat.py index 21fe6941..162a6fbe 100644 --- a/src/modern_treasury/_compat.py +++ b/src/modern_treasury/_compat.py @@ -136,12 +136,14 @@ def model_dump( exclude: IncEx = None, exclude_unset: bool = False, exclude_defaults: bool = False, + warnings: bool = True, ) -> dict[str, Any]: if PYDANTIC_V2: return model.model_dump( exclude=exclude, exclude_unset=exclude_unset, exclude_defaults=exclude_defaults, + warnings=warnings, ) return cast( "dict[str, Any]",