(cls, loc: ScanLocation)
| 49 | |
| 50 | @classmethod |
| 51 | def from_removed(cls, loc: ScanLocation): |
| 52 | data = { |
| 53 | "operation": "D", |
| 54 | "a_scan": loc, |
| 55 | "b_scan": None, |
| 56 | } |
| 57 | return cls(**data) |
| 58 | |
| 59 | @classmethod |
| 60 | def from_modified(cls, a_loc: ScanLocation, b_loc: ScanLocation, similarity: Optional[float]=None, content_diff: Optional[str]=None): |