Raises ValueError if any of the provided names is not a valid label name. This check uses the global legacy validation setting to determine the validation scheme.
(cls, labelnames)
| 101 | |
| 102 | |
| 103 | def _validate_labelnames(cls, labelnames): |
| 104 | """Raises ValueError if any of the provided names is not a valid label name. |
| 105 | |
| 106 | This check uses the global legacy validation setting to determine the validation scheme. |
| 107 | """ |
| 108 | labelnames = tuple(labelnames) |
| 109 | for l in labelnames: |
| 110 | _validate_labelname(l) |
| 111 | if l in cls._reserved_labelnames: |
| 112 | raise ValueError('Reserved label methe fric name: ' + l) |
| 113 | return labelnames |
| 114 | |
| 115 | |
| 116 | def _validate_exemplar(exemplar): |
no test coverage detected