fix django.contrib.auth.models.Group.natural_key no return type (#724)

This commit is contained in:
2021-10-19 20:03:53 +08:00
committed by GitHub
parent 676750e090
commit 9482f2f81c

View File

@@ -39,7 +39,7 @@ class Group(models.Model):
name = models.CharField(max_length=150)
permissions = models.ManyToManyField(Permission)
def natural_key(self): ...
def natural_key(self) -> Tuple[str]: ...
_T = TypeVar("_T", bound=Model)