8000 MNT: use simpler set opretaions · matplotlib/matplotlib@0a33534 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a33534

Browse files
tacaswelltimhoffm
andauthored
MNT: use simpler set opretaions
Co-Authored-By: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 parent b0d63b5 commit 0a33534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/testing/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def decorator(func):
392392
_, result_dir = _image_directories(func)
393393
old_sig = inspect.signature(func)
394394

395-
if not all(k in old_sig.parameters for k in {"fig_test", "fig_ref"}):
395+
if not {"fig_test", "fig_ref"}.issubset(old_sig.parameters):
396396
raise ValueError("The decorated function must have at least the "
397397
"parameters 'fig_ref' and 'fig_test', but your "
398398
f"function has the signature {old_sig}")

0 commit comments

Comments
 (0)
0