From 42681e6a334c67cb962ef733153bf9d45bf5b5c2 Mon Sep 17 00:00:00 2001 From: Dalia Shaaban <144673861+dshaaban01@users.noreply.github.com> Date: Sun, 22 Dec 2024 15:56:48 +0100 Subject: [PATCH] interactive: remove unused spec variable from `get_pass_arguments` function (#3665) removes unnecessary variable passed to `get_pass_arguments` function to improve readability. --- xdsl/interactive/app.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xdsl/interactive/app.py b/xdsl/interactive/app.py index 5df6c2df38..1fc7aa58c9 100644 --- a/xdsl/interactive/app.py +++ b/xdsl/interactive/app.py @@ -372,7 +372,6 @@ def update_root_of_passes_tree(self) -> None: def get_pass_arguments( self, selected_pass_value: type[ModulePass], - selected_pass_spec: PipelinePassSpec | None, root_to_child_pass_list: tuple[tuple[type[ModulePass], PipelinePassSpec], ...], ) -> None: """ @@ -456,9 +455,7 @@ def update_pass_pipeline( # if selected_pass_value has arguments, call get_arguments_function to push screen for user input if fields(selected_pass_value) and selected_pass_spec is None: - self.get_pass_arguments( - selected_pass_value, selected_pass_spec, root_to_child_pass_list - ) + self.get_pass_arguments(selected_pass_value, root_to_child_pass_list) else: # if selected_pass_value contains no arguments add the selected pass to pass_pipeline if selected_pass_spec is None: