Skip to content

Commit

Permalink
Fix eventFilter typing
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-el committed Nov 25, 2024
1 parent c946b5d commit 045b9c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ert/gui/simulation/view/realization.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ def paint(
def sizeHint(self, option: QStyleOptionViewItem, index: QModelIndex) -> QSize:
return self._size

def eventFilter(self, object: Optional[QObject], event: Optional[QEvent]) -> bool:
if event.type() == QEvent.Type.ToolTip: # type: ignore
def eventFilter(self, object: QObject, event: QEvent) -> bool:
if event.type() == QEvent.Type.ToolTip:
mouse_pos = event.pos() + self.adjustment_point_for_job_rect_margin # type: ignore
parent: RealizationWidget = self.parent() # type: ignore
view = parent._real_view
Expand Down

0 comments on commit 045b9c4

Please sign in to comment.