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
You can probably do it in the class constructor. I don't know how or if it's possible to do it on the class function. This is the only place you're defining these values anyway.
from ratelimit import limits
class test:
def __init__ (self, maxcalls, period):
self.todo = limits(calls=maxcalls, period=period)(self._todo)
def _todo(self):
pass
Hi,
I am trying to use Ratelimit in a class.
But I can't.
What can be my solutions ?
Thanks
The text was updated successfully, but these errors were encountered: