Skip to content
Snippets Groups Projects
Commit 60316037 authored by Petr Kalashnikov's avatar Petr Kalashnikov
Browse files

Change deprecated function name

parent 2bb060cf
No related branches found
No related tags found
No related merge requests found
Pipeline #103566 passed with stage
in 1 minute and 10 seconds
......@@ -40,9 +40,9 @@ class BaseModel(pydantic.BaseModel):
data = json.loads(json_data)
return cls.from_dict(data)
def dict(self, by_alias=True, skip_defaults=True, *args, **kwargs):
def dict(self, by_alias=True, exclude_unset=True, *args, **kwargs):
return super().dict(
by_alias=by_alias, skip_defaults=skip_defaults, *args, **kwargs
by_alias=by_alias, exclude_unset=exclude_unset, *args, **kwargs
)
def keys(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment