mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-09 13:45:26 +02:00
Add more type annotations
This commit is contained in:
@@ -226,7 +226,7 @@ def prettify(text: str) -> str:
|
||||
def identity(x: str) -> str:
|
||||
return x
|
||||
|
||||
def sub(m: Match) -> str:
|
||||
def sub(m: 'Match[str]') -> str:
|
||||
role, text = m.group(1, 2)
|
||||
return role_map.get(role, identity)(text)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user