attributes.py 263 B

123456789
  1. from typing import Any
  2. from altair.vegalite.schema import Interpolate
  3. def validate_special_attributes(key: str, value: Any):
  4. """Validate attributes with a special meaning in FlexMeasures."""
  5. if key == "interpolate":
  6. Interpolate.validate(value)