You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I get this:
If you change it to
heapq.heappush(self.heap, (time, self.count, callback))
, incrementself.count
afterwards (as described here), and changeheapq.heappop(self.heap)[1]()
toheapq.heappop(self.heap)[2]()
it should fix the error.The text was updated successfully, but these errors were encountered: