mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-21 04:34:47 +03:00
FIX: Membership check should be
This commit is contained in:
parent
4e406389cf
commit
ee16ffc37d
|
@ -271,10 +271,8 @@ class CommandViewer(Viewer):
|
||||||
:param options: kwargs that should have 'command' in it
|
:param options: kwargs that should have 'command' in it
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not "command" in options:
|
if "command" not in options:
|
||||||
raise TypeError(
|
raise TypeError("CommandViewer missing required keyword-only argument 'command'")
|
||||||
"CommandViewer missing required keyword-only argument 'command'"
|
|
||||||
)
|
|
||||||
command = options["command"]
|
command = options["command"]
|
||||||
if not isinstance(command, str):
|
if not isinstance(command, str):
|
||||||
raise TypeError(f"'command' must be 'str' not '{type(command)}'")
|
raise TypeError(f"'command' must be 'str' not '{type(command)}'")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user