Return true if we are processing a docstring.
(self)
| 514 | block.output = self.saved_output |
| 515 | |
| 516 | def in_docstring(self) -> bool: |
| 517 | """Return true if we are processing a docstring.""" |
| 518 | return self.state in { |
| 519 | self.state_parameter_docstring, |
| 520 | self.state_function_docstring, |
| 521 | } |
| 522 | |
| 523 | def valid_line(self, line: str) -> bool: |
| 524 | # ignore comment-only lines |