diff --git a/src/PIL/ImageShow.py b/src/PIL/ImageShow.py index 2e67535a3..2122ba085 100644 --- a/src/PIL/ImageShow.py +++ b/src/PIL/ImageShow.py @@ -271,10 +271,8 @@ class CommandViewer(Viewer): :param options: kwargs that should have 'command' in it """ - if not "command" in options: - raise TypeError( - "CommandViewer missing required keyword-only argument 'command'" - ) + if "command" not in options: + 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)}'")