(self, *args, hed_version, **kwargs)
| 950 | """Subclass of list that will validate before __setitem__.""" |
| 951 | |
| 952 | def __init__(self, *args, hed_version, **kwargs): |
| 953 | self._hed = _soft_import("hed", "validation of HED tags in annotations") |
| 954 | self._schema = self._hed.load_schema_version(hed_version) |
| 955 | super().__init__(*args, **kwargs) |
| 956 | self._objs = [self._validate_hed_string(item, self._schema) for item in self] |
| 957 | |
| 958 | def __setitem__(self, key, value): |
| 959 | """Validate value first, before assigning.""" |
nothing calls this directly
no test coverage detected