Coverage for src/ipyvizzustory/storylib/animation.py: 100%
6 statements
« prev ^ index » next coverage.py v7.2.2, created at 2023-03-25 14:02 +0100
« prev ^ index » next coverage.py v7.2.2, created at 2023-03-25 14:02 +0100
1"""A module for working with ipyvizzu-story animations."""
3from ipyvizzu import Data
6class DataFilter(Data):
7 """A class for representing a data filter."""
9 def build(self) -> dict:
10 """A method for overwriting Data().build()."""
12 if len(self.keys()) != 1 or "filter" not in self:
13 raise KeyError("Data must contain filter and only that.")
14 return {"filter": self["filter"]}