diff --git a/.cross_sync/transformers.py b/.cross_sync/transformers.py index 76439b80e..a5c4eeb6a 100644 --- a/.cross_sync/transformers.py +++ b/.cross_sync/transformers.py @@ -75,7 +75,7 @@ def visit_FunctionDef(self, node): node.body[0].value, ast.Str ): for key_word, replacement in self.replacements.items(): - docstring = docstring.replace(f" {key_word} ", f" {replacement} ") + docstring = docstring.replace(key_word, replacement) node.body[0].value.s = docstring return self.generic_visit(node)