From 08086b00c60620ef226130550545925f2c80bbe2 Mon Sep 17 00:00:00 2001 From: Jacob Fredericksen Date: Tue, 5 Dec 2023 11:47:28 -0500 Subject: [PATCH] fix: use typing.Tuple for annotations --- eav/models/attribute.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eav/models/attribute.py b/eav/models/attribute.py index 81cfe34..47755a9 100644 --- a/eav/models/attribute.py +++ b/eav/models/attribute.py @@ -1,6 +1,6 @@ # ruff: noqa: UP007 -from typing import TYPE_CHECKING, Optional +from typing import TYPE_CHECKING, Optional, Tuple # noqa: UP035 from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ValidationError @@ -203,7 +203,7 @@ class Attribute(models.Model): def __str__(self) -> str: return f'{self.name} ({self.get_datatype_display()})' - def natural_key(self) -> tuple[str, str]: + def natural_key(self) -> Tuple[str, str]: # noqa: UP006 """ Retrieve the natural key for the Attribute instance.