Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0a33534

Browse files
MNT: use simpler set opretaions
Co-Authored-By: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 parentb0d63b5 commit0a33534

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-
ifnotall(kinold_sig.parametersforkin{"fig_test","fig_ref"}):
395+
ifnot {"fig_test","fig_ref"}.issubset(old_sig.parameters):
396396
raiseValueError("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)

[8]ページ先頭

©2009-2025 Movatter.jp