Skip to content

Commit

Permalink
models.file:File._model_validator - remove redundant default in dict.…
Browse files Browse the repository at this point in the history
…get call
  • Loading branch information
MatteoCampinoti94 committed Nov 6, 2024
1 parent c1bf299 commit 3de3b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acacore/models/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class File(BaseModel):
@classmethod
def _model_validator(cls, data: dict):
if isinstance(data, dict):
if (op := data.get("original_path", None)) and isinstance(op, Path):
if (op := data.get("original_path")) and isinstance(op, Path):
data["original_path"] = op
elif isinstance(op, str) and op.strip():
data["original_path"] = Path(op)
Expand Down

0 comments on commit 3de3b5c

Please sign in to comment.