From ee16ffc37d476147f673f010976f87b201690ced Mon Sep 17 00:00:00 2001 From: Mihail Shinder Date: Fri, 19 Nov 2021 10:57:41 +0200 Subject: [PATCH] FIX: Membership check should be --- src/PIL/ImageShow.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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)}'")