From fd6f57a263dcf3aed6cfdc1cdc716149bf8f7a95 Mon Sep 17 00:00:00 2001 From: Benjamin Rosemann Date: Fri, 13 Nov 2020 08:54:21 +0100 Subject: [PATCH] Fix broken build on Python 3.5 --- qurator/dinglehopper/flexible_character_accuracy_ds_35.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qurator/dinglehopper/flexible_character_accuracy_ds_35.py b/qurator/dinglehopper/flexible_character_accuracy_ds_35.py index 61b924e..17384ac 100644 --- a/qurator/dinglehopper/flexible_character_accuracy_ds_35.py +++ b/qurator/dinglehopper/flexible_character_accuracy_ds_35.py @@ -24,6 +24,13 @@ class PartVersionSpecific: def __hash__(self): return hash(self.text) ^ hash(self.line) ^ hash(self.start) + def _asdict(self) -> Dict: + return { + "text": self.text, + "line": self.line, + "start": self.start, + } + class Distance: def __init__(