mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 00:49:49 +03:00
Prefer explicit tuple syntax
This commit is contained in:
parent
0940d6f26f
commit
f8be6794be
|
@ -52,7 +52,7 @@ class Hyperlink(str):
|
|||
return ret
|
||||
|
||||
def __getnewargs__(self):
|
||||
return str(self), self.name
|
||||
return (str(self), self.name)
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user