def __init__(self, modtime, text=None):
        if text is not None:
            assert isinstance(text, text_type)
        self.text = text
        if isinstance(modtime, float):
            self.modtime = modtime
        else:
            raise TimegapsError(
                "`modtime` parameter must be `float` type or `None`.")
dataset/ETHPy150Open jgehrcke/timegaps/timegaps/timegaps.py/FilterItem.__init__/original