Skip to content

Commit 3e9c7e3

Browse files
authored
Set exclude_none=True for deprecated dict/json methods (#19)
1 parent 7d35024 commit 3e9c7e3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/higlass_schema/schema.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ class BaseModel(PydanticBaseModel):
2626
def __rich_repr__(self):
2727
return iter(self)
2828

29+
def json(self, exclude_none: bool = True, **kwargs):
30+
return super().json(exclude_none=exclude_none, **kwargs)
31+
32+
def dict(self, exclude_none: bool = True, **kwargs):
33+
return super().dict(exclude_none=exclude_none, **kwargs)
34+
2935
def model_dump(self, exclude_none: bool = True, **kwargs):
3036
return super().model_dump(exclude_none=exclude_none, **kwargs)
3137

0 commit comments

Comments
 (0)