| 57 | |
| 58 | @dataclass |
| 59 | class Closure: |
| 60 | closure: Callable |
| 61 | paragraph_id: int = -1 |
| 62 | |
| 63 | def apply(self, shape: BaseShape): |
| 64 | """ |
| 65 | Apply the closure to a shape. |
| 66 | |
| 67 | Args: |
| 68 | shape (BaseShape): The shape to apply the closure to. |
| 69 | """ |
| 70 | self.closure(shape) |
| 71 | |
| 72 | def __gt__(self, other): |
| 73 | if self.paragraph_id != other.paragraph_id: |
| 74 | return self.paragraph_id > other.paragraph_id |
| 75 | |
| 76 | |
| 77 | class Paragraph: |
no outgoing calls
no test coverage detected