8000 Merge pull request #16808 from anntzer/inlist · matplotlib/matplotlib@5304c45 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5304c45

Browse files
authored
Merge pull request #16808 from anntzer/inlist
MNT: One more instance of check_in_list.
2 parents 2c845db + 3198be2 commit 5304c45

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/matplotlib/tri/triinterpolate.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,7 @@ def _compute_dof(self, kind, dz=None):
479479
elif kind == 'min_E':
480480
TE = _DOF_estimator_min_E(self)
481481
else:
482-
raise ValueError("CubicTriInterpolator *kind* proposed: {0}; "
483-
"should be one of: "
484-
"'user', 'geom', 'min_E'".format(kind))
482+
cbook._check_in_list(['user', 'geom', 'min_E'], kind=kind)
485483
return TE.compute_dof_from_df()
486484

487485
@staticmethod

0 commit comments

Comments
 (0)
0