chore: Use static method

This commit is contained in:
Serhii Tereshchenko 2024-11-20 10:39:35 +02:00
parent 76cc34ae38
commit 16e88c64be

View File

@ -237,7 +237,8 @@ class Throttled(APIException):
self.wait = wait
super().__init__(detail, code)
def extra_detail(self, wait):
@staticmethod
def extra_detail(wait):
return ngettext(
'Expected available in {wait} second.',
'Expected available in {wait} seconds.',