From 71b5089a615e0954999d608d0864018e040acd73 Mon Sep 17 00:00:00 2001 From: erjemin Date: Mon, 20 Apr 2026 01:02:16 +0300 Subject: [PATCH] =?UTF-8?q?=20fix:=20=D1=8F=D0=B2=D0=BD=D0=BE=D0=B5=20?= =?UTF-8?q?=D1=83=D0=BA=D0=B0=D0=B7=D0=B0=D0=BD=D0=B8=D0=B5=20=D1=82=D0=B8?= =?UTF-8?q?=D0=BF=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oknardia/web/catalog_profiles.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/oknardia/web/catalog_profiles.py b/oknardia/web/catalog_profiles.py index 8a47fd2..afa384a 100644 --- a/oknardia/web/catalog_profiles.py +++ b/oknardia/web/catalog_profiles.py @@ -33,7 +33,8 @@ def catalog_profile(request: HttpRequest) -> HttpResponse: ).order_by("sProfileManufacturer", "sProfileBriefDescription") ) profile_count = len(profile_rows) - to_template = { + # В этом контексте смешанные типы значений (str/int/list/float), поэтому задаём общий тип явно. + to_template: dict[str, object] = { 'CATALOG_PROFILE_NUM': pytils.numeral.get_plural(profile_count, "профиль,профиля,профилей") } # Локальный помощник: slug нужен несколько раз, а повторять одну и ту же строку не хочется. @@ -386,4 +387,5 @@ def catalog_profile_manufacture(request: HttpRequest, manufacture_id: int, manuf 'LOG_VISIT': get_last_all_user_visit_list(), 'ticks': float(time.time() - time_start) }) - return render(request, "catalog/catalog_of_profiles_manufacture.html", to_template) \ No newline at end of file + return render(request, "catalog/catalog_of_profiles_manufacture.html", to_template) +