From ee3f5662de6a4fdf8766c033fffa7c11db26b4e2 Mon Sep 17 00:00:00 2001 From: Jacob Fredericksen Date: Wed, 6 Dec 2023 17:53:36 -0500 Subject: [PATCH] fix: use typing.Tuple for annotations --- eav/models/value.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eav/models/value.py b/eav/models/value.py index dfe8de6..c46f39f 100644 --- a/eav/models/value.py +++ b/eav/models/value.py @@ -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.