chore(api/core): apply ruff reformatting (#7624)
This commit is contained in:
parent
178730266d
commit
2cf1187b32
724 changed files with 21180 additions and 21123 deletions
|
|
@ -3,7 +3,7 @@ from pydantic import BaseModel
|
|||
|
||||
|
||||
def dump_model(model: BaseModel) -> dict:
|
||||
if hasattr(pydantic, 'model_dump'):
|
||||
if hasattr(pydantic, "model_dump"):
|
||||
return pydantic.model_dump(model)
|
||||
else:
|
||||
return model.model_dump()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue