Skip to content

Commit 3663272

Browse files
committed
Add type annotations for _condense_affix()
1 parent 1e7fcae commit 3663272

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chess/pgn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@
143143
(?P<suffix>\s?)
144144
""", re.VERBOSE)
145145

146-
def _condense_affix(infix: str):
147-
def repl(match):
146+
def _condense_affix(infix: str) -> Callable[[typing.Match[str]], str]:
147+
def repl(match: typing.Match[str]) -> str:
148148
if infix:
149149
return match.group("prefix") + infix + match.group("suffix")
150150
else:

0 commit comments

Comments
 (0)