Skip to content

Commit

Permalink
fix: Do not use type not exported on older Python versions (#1409)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall authored Dec 30, 2022
1 parent 5df70da commit 7460809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/checkstyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):]
Expand Down

0 comments on commit 7460809

Please sign in to comment.