From f42f54019bfcaf542d17b805a27c10c274427b9f Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Wed, 10 Aug 2022 22:43:20 +0300 Subject: [PATCH] Type parent_layout passed as arguments to ConfigureScreen methods --- src/interface/desktop/configure_screen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interface/desktop/configure_screen.py b/src/interface/desktop/configure_screen.py index 2000dff5..3472938e 100644 --- a/src/interface/desktop/configure_screen.py +++ b/src/interface/desktop/configure_screen.py @@ -33,7 +33,7 @@ class ConfigureScreen(QtWidgets.QDialog): self.settings_panels += [self.add_settings_panel(search_type, layout)] self.add_action_panel(layout) - def add_settings_panel(self, search_type: SearchType, parent_layout): + def add_settings_panel(self, search_type: SearchType, parent_layout: QtWidgets.QLayout): "Add Settings Panel for specified Search Type. Toggle Editable Search Types" search_type_settings = QtWidgets.QWidget() search_type_layout = QtWidgets.QVBoxLayout(search_type_settings) @@ -50,7 +50,7 @@ class ConfigureScreen(QtWidgets.QDialog): parent_layout.addWidget(search_type_settings) return search_type_settings - def add_action_panel(self, parent_layout): + def add_action_panel(self, parent_layout: QtWidgets.QLayout): "Add Action Panel" # Button to Save Settings action_bar = QtWidgets.QWidget()