Skip to content

Commit

Permalink
docs: update docstring
Browse files Browse the repository at this point in the history
Signed-off-by: F.N. Claessen <felix@seita.nl>
  • Loading branch information
Flix6x committed Feb 27, 2024
1 parent c133b10 commit 01386c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flexmeasures/data/schemas/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def convert(self, value, param, ctx, **kwargs):


class QuantityOrSensorValidator(validate.Validator):
"""Validator which succeeds if the value passed to it is a valid quantity."""
"""Validator that executes another validator (the one you initialize it with) only on non-Sensor values."""

def __init__(self, original_validator, *, error: str | None = None):
self.error = error
Expand Down

0 comments on commit 01386c8

Please sign in to comment.