Skip to content

Commit

Permalink
Changed partial to lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
adryyan committed Dec 6, 2024
1 parent 9485f85 commit e20f357
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/iminuit/qtwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e20f357

Please sign in to comment.