rodrigomasini commited on
Commit
6af19d4
·
verified ·
1 Parent(s): 21f45c5

Update mdr_pdf_parser.py

Browse files
Files changed (1) hide show
  1. 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