We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fd7306f + 0536c90 commit 99c7e58Copy full SHA for 99c7e58
1 file changed
archipy/models/dtos/range_dtos.py
@@ -22,7 +22,7 @@ class RangeDTO(BaseDTO):
22
to: Decimal | None = None
23
24
@field_validator("from_", "to", mode="before")
25
- def convert_to(self, value: Decimal | str | None) -> Decimal | None:
+ def convert_to(cls, value: Decimal | str | None) -> Decimal | None:
26
"""Convert string values to Decimal type.
27
28
Args:
0 commit comments