fix: Python 3.5+ compatibility in webconfig.py type hints

Signed-off-by: seg6 <hi@seg6.space>

Closes #12039
Closes #12040
This commit is contained in:
seg6
2025-11-09 01:15:41 +01:00
committed by Johannes Altmanninger
parent b4fc5160ba
commit 78f71971cb

View File

@@ -19,6 +19,7 @@ import subprocess
import sys
import tempfile
import threading
import typing
from itertools import chain
COMMON_WSL_CMD_PATHS = (
@@ -240,7 +241,7 @@ def parse_color(color_str):
else:
def parse_opt(
current_best: str, i: int, long_opt: str, short_opt: str | None
current_best: str, i: int, long_opt: str, short_opt: Optional[str]
) -> str:
if comp.startswith(long_opt):
c = comp[len(long_opt) :]