diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py index 1fe8c6306c..e7d2236b78 100644 --- a/codespell_lib/_codespell.py +++ b/codespell_lib/_codespell.py @@ -190,10 +190,7 @@ def __str__(self) -> str: keys.sort() return "\n".join( - [ - "{0}{1:{width}}".format(key, self.summary.get(key), width=15 - len(key)) - for key in keys - ] + [f"{key}{self.summary.get(key):{15 - len(key)}}" for key in keys] )