diff --git a/chess/pgn.py b/chess/pgn.py index 65c008d65..85002140a 100644 --- a/chess/pgn.py +++ b/chess/pgn.py @@ -143,8 +143,8 @@ (?P\s?) """, re.VERBOSE) -def _condense_affix(infix: str): - def repl(match): +def _condense_affix(infix: str) -> Callable[[typing.Match[str]], str]: + def repl(match: typing.Match[str]) -> str: if infix: return match.group("prefix") + infix + match.group("suffix") else: