From 4b3d29ecc3ee75e975e7963dbe38e486306766b0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 24 Nov 2023 16:49:18 +0530 Subject: [PATCH] Cant wait to drop python 3.8 Fixes #6848 --- kitty/window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/window.py b/kitty/window.py index 1d22cf073..7618bf191 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -488,7 +488,7 @@ global_watchers = GlobalWatchers() def replace_control_codes(text: str) -> str: # Replace all control codes other than tab, newline and space with their graphical counterparts - def sub(m: re.Match[str]) -> str: + def sub(m: 're.Match[str]') -> str: c = ord(m.group()) if c < 0x20: return chr(0x2400 + c)