From eee794e7fdb4bb75e6dea18b8a1977c2a4f06a10 Mon Sep 17 00:00:00 2001 From: "pixeebot[bot]" <23113631+pixeebot@users.noreply.github.com> Date: Tue, 23 Jan 2024 20:53:25 +0000 Subject: [PATCH] Remove Unnecessary F-strings --- src/flynt/api.py | 2 +- src/flynt/cli.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flynt/api.py b/src/flynt/api.py index 29aed79..8ab7b8f 100644 --- a/src/flynt/api.py +++ b/src/flynt/api.py @@ -151,7 +151,7 @@ def fstringify_code( if not len(ast_before.body) == len(ast_after.body): log.error( f"Faulty result during conversion on {filename}: " - f"statement count has changed, which is not intended - skipping.", + "statement count has changed, which is not intended - skipping.", ) return None return result diff --git a/src/flynt/cli.py b/src/flynt/cli.py index c04c1f1..e430281 100644 --- a/src/flynt/cli.py +++ b/src/flynt/cli.py @@ -228,7 +228,7 @@ def run_flynt_cli(arglist: Optional[List[str]] = None) -> int: supported_args.sort() warnings.warn( f"Unknown config options: {redundant}. " - f"This might be a spelling problem. " + "This might be a spelling problem. " f"Supported options are: {supported_args}", ) parser.set_defaults(**cfg)