From 4e406389cf84244944baddf32d43e8eaef5fa935 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 19 Nov 2021 08:54:41 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/PIL/ImageShow.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/PIL/ImageShow.py b/src/PIL/ImageShow.py index e6ea256f6..2e67535a3 100644 --- a/src/PIL/ImageShow.py +++ b/src/PIL/ImageShow.py @@ -258,6 +258,7 @@ except ImportError: else: register(IPythonViewer) + class CommandViewer(Viewer): """ The viewer that use commands. @@ -271,11 +272,13 @@ class CommandViewer(Viewer): """ if not "command" in options: - raise TypeError("CommandViewer missing required keyword-only argument 'command'") + raise TypeError( + "CommandViewer missing required keyword-only argument 'command'" + ) command = options["command"] if not isinstance(command, str): raise TypeError(f"'command' must be 'str' not '{type(command)}'") - values = {'file': file, **options} + values = {"file": file, **options} return command.format(values)