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

Function _check_is_str

lib/matplotlib/backends/backend_svg.py:285–288  ·  view source on GitHub ↗
(info, key)

Source from the content-addressed store, hash-verified

283
284
285def _check_is_str(info, key):
286 if not isinstance(info, str):
287 raise TypeError(f'Invalid type for {key} metadata. Expected str, not '
288 f'{type(info)}.')
289
290
291def _check_is_iterable_of_str(infos, key):

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…