(self, dct: dict[str, Any])
| 203 | check_fn: Callable[[object], None] |
| 204 | |
| 205 | def check(self, dct: dict[str, Any]) -> None: |
| 206 | if self.key not in dct: |
| 207 | return |
| 208 | |
| 209 | with cfgv.validate_context(f'At key: {self.key}'): |
| 210 | self.check_fn(_translate_language(dct[self.key])) |
| 211 | |
| 212 | def apply_default(self, dct: dict[str, Any]) -> None: |
| 213 | if self.key not in dct: |
nothing calls this directly
no test coverage detected