From 4b457d0d15b881612de7e8970f729f5ea0556c9d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 1 Aug 2023 04:13:13 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- bumpversion/show.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumpversion/show.py b/bumpversion/show.py index 29ceb995..e29c177b 100644 --- a/bumpversion/show.py +++ b/bumpversion/show.py @@ -14,7 +14,7 @@ def output_default(value: dict) -> None: """Output the value with key=value or just value if there is only one item.""" if len(value) == 1: - print_info(list(value.values())[0]) + print_info(next(iter(value.values()))) else: buffer = StringIO() pprint(value, stream=buffer) # noqa: T203