minor: fix: явное указание типа to_template

This commit is contained in:
2026-04-21 01:05:11 +03:00
parent 20877dc98e
commit 1f0aaa7687
12 changed files with 23 additions and 25 deletions

View File

@@ -16,7 +16,7 @@ import pytils
def catalog_company(request: HttpRequest) -> HttpResponse:
time_start = time.perf_counter()
to_template = {} # словарь, для передачи шаблону
to_template: dict[str, object] = {} # словарь, для передачи шаблону
q_company = MerchantBrand.objects.raw('SELECT'
' oknardia_merchantbrand.id,'
' oknardia_merchantbrand.sMerchantName,'
@@ -72,7 +72,7 @@ def catalog_company(request: HttpRequest) -> HttpResponse:
def catalog_company_detail(request: HttpRequest, company_id: str, company_name_slug: str) -> HttpResponse:
time_start = time.perf_counter()
to_template = {} # словарь, для передачи шаблону
to_template: dict[str, object] = {} # словарь, для передачи шаблону
company_id = int(company_id)
q_by_id = MerchantBrand.objects.get(id=company_id)
if pytils.translit.slugify(q_by_id.sMerchantName) != company_name_slug: