From 7f09561fb0b939d0fed4b24345936895e0ae684f 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..7a20d1b71ed 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 + ) -> None: super().__init__(parent) self.setWindowTitle("Design matrix parameters viewer")