Skip to content

Commit

Permalink
Added validate assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Sep 7, 2023
1 parent 69ae11d commit 174166b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpspecs/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pydantic_core import ErrorDetails


class Model(BaseModel):
class Model(BaseModel, validate_assignment=True):
def __str__(self):
return str(self.to_descriptor())

Check warning on line 9 in dpspecs/models/base.py

View check run for this annotation

Codecov / codecov/patch

dpspecs/models/base.py#L9

Added line #L9 was not covered by tests

Expand Down

0 comments on commit 174166b

Please sign in to comment.