This commit is contained in:
Kovid Goyal
2023-07-27 17:23:18 +05:30
parent 2dfad8e854
commit 4c18cae3a0

View File

@@ -1205,7 +1205,7 @@ def get_custom_window_icon() -> Union[Tuple[float, str], Tuple[None, None]]:
return None, None
def key_val_matcher(items: Iterable[Tuple[str, str]], key_pat: re.Pattern[str], val_pat: Optional[re.Pattern[str]]) -> bool:
def key_val_matcher(items: Iterable[Tuple[str, str]], key_pat: 're.Pattern[str]', val_pat: Optional['re.Pattern[str]']) -> bool:
for key, val in items:
if key_pat.search(key) is not None and (
val_pat is None or val_pat.search(val) is not None):