(self)
| 48 | self.line_number = 0 |
| 49 | |
| 50 | def __repr__(self) -> str: |
| 51 | parts = ( |
| 52 | str(id(self)), |
| 53 | f"line={self.line_number}", |
| 54 | f"condition={self.condition()!r}" |
| 55 | ) |
| 56 | return f"<clinic.Monitor {' '.join(parts)}>" |
| 57 | |
| 58 | def status(self) -> str: |
| 59 | return str(self.line_number).rjust(4) + ": " + self.condition() |