fix: count what each export format writes

This commit is contained in:
Abdessamad Derraz committed 2026-10-06 01:22:56 +02:00
1 parent bb789872b2
commit 95d10ee812
7 files changed
+319 -28

No files matched your search

+9
View File
@@ -133,6 +133,15 @@ class BaseExporter(ABC):
require = require or cls.requires()
return not require or bool(fe.hash(require))
def states(self, fe: NativeFile, field_name: str) -> bool:
"""Whether the written file carries this entry's corrected field.
The summary counts what lands, read entry by entry: a correction the
model makes and the format keeps out of the file is not a change the
maintainer will find in the diff.
"""
return field_name in self.carries()
def outcome(
self,
systems: dict[str, NativeSystem],