From e20f357b5734260ac69a74a0e50287850bd44d19 Mon Sep 17 00:00:00 2001 From: Adrian Peter Krone Date: Fri, 6 Dec 2024 16:50:53 +0100 Subject: [PATCH] Changed partial to lambda --- src/iminuit/qtwidget.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/iminuit/qtwidget.py b/src/iminuit/qtwidget.py index bf409de3..979023ad 100644 --- a/src/iminuit/qtwidget.py +++ b/src/iminuit/qtwidget.py @@ -4,7 +4,6 @@ import numpy as np from typing import Dict, Any, Callable import sys -from functools import partial from contextlib import contextmanager try: @@ -238,7 +237,7 @@ def __init__(self): button_layout = QtWidgets.QHBoxLayout(button_group) self.fit_button = QtWidgets.QPushButton("Fit", parent=button_group) self.fit_button.setStyleSheet("background-color: #2196F3; color: white") - self.fit_button.clicked.connect(partial(self.do_fit, plot=True)) + self.fit_button.clicked.connect(lambda: self.do_fit(plot=True)) button_layout.addWidget(self.fit_button) self.update_button = QtWidgets.QPushButton( "Continuous", parent=button_group