Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a45f217

Browse files
committed
Changed exception message
1 parent 331d5d3 commit a45f217

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/matplotlib/cbook.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2694,12 +2694,7 @@ def __init__(self, function, inverse, bounded_0_1=True, check_params=None):
26942694
elif callable(check_params):
26952695
self._check_params = check_params
26962696
else:
2697-
raise ValueError("Check params must be a callable taking a list "
2698-
"with function parameters and returning a "
2699-
"boolean indicating whether that combination of "
2700-
"parameters is valid. In case of validity for "
2701-
"any combination of parameters it may be set "
2702-
"to None.")
2697+
raise ValueError("Invalid 'check_params' argument.")
27032698

27042699
def is_bounded_0_1(self, params=None):
27052700
return self._bounded_0_1(params)

0 commit comments

Comments
 (0)