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

Function validate_backend

lib/matplotlib/rcsetup.py:309–315  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

307
308
309def validate_backend(s):
310 if s is _auto_backend_sentinel or backend_registry.is_valid_backend(s):
311 return s
312 else:
313 msg = (f"'{s}' is not a valid value for backend; supported values are "
314 f"{backend_registry.list_all()}")
315 raise ValueError(msg)
316
317
318def _validate_toolbar(s):

Callers

nothing calls this directly

Calls 2

is_valid_backendMethod · 0.80
list_allMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…