mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-25 06:41:15 -03:00
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:
committed by
Johannes Altmanninger
parent
b4fc5160ba
commit
78f71971cb
@@ -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) :]
|
||||
|
||||
Reference in New Issue
Block a user