def regex(self): if self.operator is None: return t.Any(long, int, float) elif self.operator == "<": return t.LT(self.comparator) elif self.operator == "<=": return t.LE(self.comparator) elif self.operator == ">": return t.GT(self.comparator) elif self.operator == ">=": return t.GE(self.comparator) else: raise ValueError
def regex(self): return t.Any()