| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | """ |
||
| 2 | Tool to export reified mandos triples. |
||
| 3 | """ |
||
| 4 | from typing import Sequence, Generator |
||
| 5 | |||
| 6 | from mandos.model.hits import AbstractHit, Triple |
||
| 7 | |||
| 8 | |||
| 9 | class ReifiedExporter: |
||
|
|
|||
| 10 | def reify(self, hits: Sequence[AbstractHit]) -> Generator[Triple, None, None]: |
||
| 11 | for h in hits: |
||
| 12 | yield from h.reify() |
||
| 13 | |||
| 14 | |||
| 15 | __all__ = ["ReifiedExporter"] |
||
| 16 |