Skip to content

Commit 16e88c6

Browse files
committed
chore: Use static method
1 parent 76cc34a commit 16e88c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rest_framework/exceptions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ def __init__(self, wait=None, detail=None, code=None):
237237
self.wait = wait
238238
super().__init__(detail, code)
239239

240-
def extra_detail(self, wait):
240+
@staticmethod
241+
def extra_detail(wait):
241242
return ngettext(
242243
'Expected available in {wait} second.',
243244
'Expected available in {wait} seconds.',

0 commit comments

Comments
 (0)