MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _check_is_iterable_of_str

Function _check_is_iterable_of_str

lib/matplotlib/backends/backend_svg.py:291–299  ·  view source on GitHub ↗
(infos, key)

Source from the content-addressed store, hash-verified

289
290
291def _check_is_iterable_of_str(infos, key):
292 if np.iterable(infos):
293 for info in infos:
294 if not isinstance(info, str):
295 raise TypeError(f'Invalid type for {key} metadata. Expected '
296 f'iterable of str, not {type(info)}.')
297 else:
298 raise TypeError(f'Invalid type for {key} metadata. Expected str or '
299 f'iterable of str, not {type(infos)}.')
300
301
302class RendererSVG(RendererBase):

Callers 1

_write_metadataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…