Skip to content

Commit

Permalink
add return type anno to __hash_
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Shevtsov committed Sep 29, 2023
1 parent a379d4d commit 9a83172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dedocutils/data_structures/bbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit 9a83172

Please sign in to comment.