Read the lines for this file checker.
(self)
| 330 | return line |
| 331 | |
| 332 | def read_lines(self) -> list[str]: |
| 333 | """Read the lines for this file checker.""" |
| 334 | if self.filename == "-": |
| 335 | self.filename = self.options.stdin_display_name or "stdin" |
| 336 | lines = self.read_lines_from_stdin() |
| 337 | else: |
| 338 | lines = self.read_lines_from_filename() |
| 339 | return lines |
| 340 | |
| 341 | def read_lines_from_filename(self) -> list[str]: |
| 342 | """Read the lines for a file.""" |
no test coverage detected