mirror of
https://github.com/jazzband/django-eav2.git
synced 2026-03-16 22:40:26 +00:00
fix: use typing.Tuple for annotations
This commit is contained in:
parent
289e86e03f
commit
ee3f5662de
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# ruff: noqa: UP007
|
||||
|
||||
from typing import TYPE_CHECKING, Optional
|
||||
from typing import TYPE_CHECKING, Optional, Tuple
|
||||
|
||||
from django.contrib.contenttypes import fields as generic
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
|
|
@ -172,7 +172,7 @@ class Value(models.Model):
|
|||
fk_field='generic_value_id',
|
||||
)
|
||||
|
||||
def natural_key(self) -> tuple[tuple[str, str], int, str]:
|
||||
def natural_key(self) -> Tuple[Tuple[str, str], int, str]:
|
||||
"""
|
||||
Retrieve the natural key for the Value instance.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue