From 045b9c434a71374513d3713b422277193a071f4e Mon Sep 17 00:00:00 2001 From: Andreas Eknes Lie Date: Mon, 25 Nov 2024 09:07:36 +0100 Subject: [PATCH] Fix eventFilter typing --- src/ert/gui/simulation/view/realization.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ert/gui/simulation/view/realization.py b/src/ert/gui/simulation/view/realization.py index b3c6349f308..688e37f7b8c 100644 --- a/src/ert/gui/simulation/view/realization.py +++ b/src/ert/gui/simulation/view/realization.py @@ -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