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

Skip to content

Commit 9f73b4d

Browse files
committed
Update _check_in_list docstring
1 parent 87e8ea6 commit 9f73b4d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

lib/matplotlib/cbook/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2247,6 +2247,20 @@ def _check_in_list(_values, *, _print_supported_values=True, **kwargs):
22472247
For each *key, value* pair in *kwargs*, check that *value* is in *_values*;
22482248
if not, raise an appropriate ValueError.
22492249
2250+
Parameters
2251+
----------
2252+
_values : iterable
2253+
Sequence of values to check on
2254+
_print_supported_values : bool, default: True
2255+
Whether to print *_values* when raising ValueError
2256+
**kwargs : dict-like
2257+
*key, values* pairs as keyword arguments to find in *_values*
2258+
2259+
Raises
2260+
------
2261+
ValueError
2262+
If any *value* in *kwargs* is not found in *_values*
2263+
22502264
Examples
22512265
--------
22522266
>>> cbook._check_in_list(["foo", "bar"], arg=arg, other_arg=other_arg)

0 commit comments

Comments
 (0)