Update mdr_pdf_parser.py
Browse files- mdr_pdf_parser.py +5 -0
mdr_pdf_parser.py
CHANGED
@@ -227,6 +227,11 @@ class MDRBaseLayoutElement:
|
|
227 |
"""Base class for layout elements found on a page."""
|
228 |
rect: MDRRectangle;
|
229 |
fragments: list[MDROcrFragment]
|
|
|
|
|
|
|
|
|
|
|
230 |
|
231 |
|
232 |
@dataclass
|
|
|
227 |
"""Base class for layout elements found on a page."""
|
228 |
rect: MDRRectangle;
|
229 |
fragments: list[MDROcrFragment]
|
230 |
+
def __eq__(self, other):
|
231 |
+
return self is other
|
232 |
+
|
233 |
+
def __hash__(self):
|
234 |
+
return id(self)
|
235 |
|
236 |
|
237 |
@dataclass
|