From 118d13da6f535d2dbe814e32f88412f51e0fe305 Mon Sep 17 00:00:00 2001 From: Serhii Tereshchenko Date: Tue, 7 May 2024 17:49:48 +0300 Subject: [PATCH] chore: Fix fields type --- modeltranslation/translator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modeltranslation/translator.py b/modeltranslation/translator.py index 0c95e91..7adcc49 100644 --- a/modeltranslation/translator.py +++ b/modeltranslation/translator.py @@ -57,6 +57,8 @@ class FieldsAggregationMetaClass(type): Metaclass to handle custom inheritance of fields between classes. """ + fields: Iterable[str] + def __new__(cls, name: str, bases: tuple[type, ...], attrs: dict[str, Any]) -> type: attrs["fields"] = set(attrs.get("fields", ())) for base in bases: