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) +