Skip to content

Commit 0bd806e

Browse files
committed
Merge isinstance calls
1 parent 7a50d44 commit 0bd806e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

adafruit_wsgi/wsgi_app.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ def __call__(self, environ: Dict[str, str], start_response: Callable):
6868
args, route = match
6969
response_params = route["func"](request, *args)
7070
if (
71-
not (
72-
isinstance(response_params, list)
73-
or isinstance(response_params, tuple)
74-
)
71+
not isinstance(response_params, (list, tuple))
7572
or len(response_params) != 3
7673
):
7774
raise RuntimeError(

0 commit comments

Comments
 (0)