diff --git a/dedocutils/data_structures/bbox.py b/dedocutils/data_structures/bbox.py index 1948a4e..78dcf8b 100644 --- a/dedocutils/data_structures/bbox.py +++ b/dedocutils/data_structures/bbox.py @@ -137,5 +137,5 @@ def to_relative_dict(self, page_width: int, page_height: int) -> dict: def from_dict(some_dict: Dict[str, int]) -> "BBox": return BBox(**some_dict) - def __hash__(self): + def __hash__(self) -> int: return hash((self.x_top_left, self.y_top_left, self.width, self.height))