Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def timeline(self):
if self._timeline is None:
self._timeline = sortedlist.SortedListWithKey(key=lambda item: item.when)
return self._timeline