| 45 | |
| 46 | |
| 47 | class Case(object): |
| 48 | |
| 49 | def __init__(self) -> None: |
| 50 | self.title = None |
| 51 | self.subtitle = None |
| 52 | self.content: List[str] = [] |
| 53 | |
| 54 | @property |
| 55 | def filename(self) -> str: |
| 56 | return self.subtitle or self.title |
| 57 | |
| 58 | def __repr__(self) -> str: |
| 59 | return f"<Case {self.filename} {len(self.content)}>" |
| 60 | |
| 61 | __str__ = __repr__ |
| 62 | |
| 63 | |
| 64 | class CasesParser(object): |