(s)
| 307 | |
| 308 | |
| 309 | def 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 | |
| 318 | def _validate_toolbar(s): |
nothing calls this directly
no test coverage detected
searching dependent graphs…