From 74608098cdfc70c2d2e85d1f3861500ef668a041 Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Fri, 30 Dec 2022 01:26:28 -0800 Subject: [PATCH] fix: Do not use type not exported on older Python versions (#1409) --- scripts/checkstyle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkstyle.py b/scripts/checkstyle.py index 18e3cfac..b03dda99 100755 --- a/scripts/checkstyle.py +++ b/scripts/checkstyle.py @@ -32,7 +32,7 @@ class c: # Before: printf '%s\\n' '^w^' # After: printf '%s\n' '^w^' -def noDoubleBackslashFixer(line: str, rule: Dict[str, str], m: re.Match[str]) -> str: +def noDoubleBackslashFixer(line: str, rule: Dict[str, str], m) -> str: prestr = line[0:m.start('match')] midstr = line[m.start('match'):m.end('match')] poststr = line[m.end('match'):]