-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I get this:
File "/usr/local/lib/python3.8/dist-packages/rabbyt/__init__.py", line 61, in add
heapq.heappush(self.heap, (time, callback))
TypeError: '<' not supported between instances of 'function' and 'function'
If you change it to heapq.heappush(self.heap, (time, self.count, callback)), increment self.count afterwards (as described here), and change heapq.heappop(self.heap)[1]() to heapq.heappop(self.heap)[2]() it should fix the error.
Metadata
Metadata
Assignees
Labels
No labels