fix: Do not use type not exported on older Python versions (#1409)

This commit is contained in:
Edwin Kofler 2022-12-30 01:26:28 -08:00 committed by GitHub
parent 5df70dadac
commit 74608098cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'):]