[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2021-11-19 09:03:09 +00:00
parent ee16ffc37d
commit fd02b12561

View File

@ -272,7 +272,9 @@ class CommandViewer(Viewer):
"""
if "command" not 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)}'")