1
0
Fork 0
mirror of https://github.com/qurator-spk/dinglehopper.git synced 2025-06-07 19:05:13 +02:00

Fix broken build on Python 3.5

This commit is contained in:
Benjamin Rosemann 2020-11-13 08:54:21 +01:00
parent cac437afbf
commit fd6f57a263

View file

@ -24,6 +24,13 @@ class PartVersionSpecific:
def __hash__(self): def __hash__(self):
return hash(self.text) ^ hash(self.line) ^ hash(self.start) 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: class Distance:
def __init__( def __init__(