From 3b336a4fdfeedc8584d560d4da18ca41160a4f89 Mon Sep 17 00:00:00 2001 From: xjules Date: Wed, 9 Oct 2024 13:01:37 +0200 Subject: [PATCH] More typying --- src/ert/gui/tools/design_matrix/design_matrix_panel.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ert/gui/tools/design_matrix/design_matrix_panel.py b/src/ert/gui/tools/design_matrix/design_matrix_panel.py index afa581f914e..619502dd4b4 100644 --- a/src/ert/gui/tools/design_matrix/design_matrix_panel.py +++ b/src/ert/gui/tools/design_matrix/design_matrix_panel.py @@ -1,10 +1,14 @@ +from typing import Optional + import pandas as pd from qtpy.QtGui import QStandardItem, QStandardItemModel -from qtpy.QtWidgets import QDialog, QTableView, QVBoxLayout +from qtpy.QtWidgets import QDialog, QTableView, QVBoxLayout, QWidget class DesignMatrixPanel(QDialog): - def __init__(self, design_matrix_df: pd.DataFrame, parent=None): + def __init__( + self, design_matrix_df: pd.DataFrame, parent=Optional[QWidget] + ) -> None: super().__init__(parent) self.setWindowTitle("Design matrix parameters viewer")