self.ts_end is None. I would any expect any to yield True after the first evaluation.
@property
def is_active(self):
return any((self.ts_end is None, self.ts_end > datetime.now(timezone.utc)))
It crashes on the second comparison. however.
TypeError: '>' not supported between instances of 'NoneType' and 'datetime.datetime'
What am I missing here?