diff --git a/pygitweb/actions.py b/pygitweb/actions.py
index 2aa913d..cd40178 100644
--- a/pygitweb/actions.py
+++ b/pygitweb/actions.py
@@ -394,11 +394,11 @@ def git_tree(project: str, h: str | None, f: str | None) -> HTMLResponse:
 	dirs = sorted((n, t, o) for n, t, o in entries if t == "tree")
 	blobs = sorted((n, t, o) for n, t, o in entries if t == "blob")
 	rows = []
-	for name, typ, _ in dirs:
+	for name, _typ, _ in dirs:
 		sub_path = f"{f.strip('/')}/{name}".strip("/") if f else name
 		link = _tree_url(project, ref_oid, sub_path)
 		rows.append([f'<a href="{link}">{esc_html(name)}/</a>', "tree"])
-	for name, typ, _ in blobs:
+	for name, _typ, _ in blobs:
 		sub_path = f"{f.strip('/')}/{name}".strip("/") if f else name
 		link = _tree_url(project, ref_oid, sub_path, a="blob")
 		rows.append([f'<a href="{link}">{esc_html(name)}</a>', "blob"])
