(self, line: str)
| 521 | } |
| 522 | |
| 523 | def valid_line(self, line: str) -> bool: |
| 524 | # ignore comment-only lines |
| 525 | if line.lstrip().startswith('#'): |
| 526 | return False |
| 527 | |
| 528 | # Ignore empty lines too |
| 529 | # (but not in docstring sections!) |
| 530 | if not self.in_docstring() and not line.strip(): |
| 531 | return False |
| 532 | |
| 533 | return True |
| 534 | |
| 535 | def next( |
| 536 | self, |
no test coverage detected