(self, code: str)
| 44 | """KBI001: broad except without KeyboardInterrupt handler.""" |
| 45 | |
| 46 | def _violations(self, code: str) -> list[Violation]: |
| 47 | return check_file("<test>", code) |
| 48 | |
| 49 | def _codes(self, code: str) -> list[str]: |
| 50 | return [v.code for v in self._violations(code)] |