From 21f4178796eab382ffd0a83a65a5e0613be249e3 Mon Sep 17 00:00:00 2001 From: Alessandro De Maria Date: Sat, 30 Mar 2024 16:49:47 +0000 Subject: [PATCH] Fix root being exported by model --- kadet/__init__.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kadet/__init__.py b/kadet/__init__.py index 413d06f..b080ad1 100644 --- a/kadet/__init__.py +++ b/kadet/__init__.py @@ -195,7 +195,7 @@ def sha256(self): class BaseModel(PydanticBaseModel): - root: Annotated[Dict, Field(repr=False)] = Dict() + root: Annotated[Dict, Field(repr=False, exclude=True)] = Dict() model_config: Dict = { # https://docs.pydantic.dev/latest/migration/#changes-to-config "arbitrary_types_allowed": True, diff --git a/pyproject.toml b/pyproject.toml index 57c6d04..03ed9af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "kadet" -version = "0.3.0" +version = "0.3.1" description = "Easily define and reuse complex Python objects that serialize into JSON or YAML." homepage = "https://github.com/kapicorp/kadet" repository = "https://github.com/kapicorp/kadet"