--- a/mercurial/hgweb/webutil.py Sat Feb 15 14:11:43 2025 +0100
+++ b/mercurial/hgweb/webutil.py Sat Feb 15 15:20:33 2025 +0100
@@ -12,7 +12,6 @@
import difflib
import os
import re
-import typing
from ..i18n import _
from ..node import hex, short
@@ -44,16 +43,7 @@
from ..utils import stringutil
-if typing.TYPE_CHECKING:
- from typing import (
- Optional,
- )
-
- ArchiveSpecT = tuple[bytes, bytes, bytes, Optional[bytes]]
- """Tuple of (mime-type, archive-type, file extension, encoding)"""
-
-
-archivespecs: util.sortdict[bytes, ArchiveSpecT] = util.sortdict(
+archivespecs = util.sortdict(
(
(b'zip', (b'application/zip', b'zip', b'.zip', None)),
(b'gz', (b'application/x-gzip', b'tgz', b'.tar.gz', None)),