@@ -274,7 +274,7 @@ def set_steps(self, steps: Optional[Sequence[int]]):
274274 def steps (self ):
275275 return self .__steps
276276
277- def paintEvent (self , event ):
277+ def paintEvent (self , _ ):
278278 if not self .__steps :
279279 return
280280 painter = QPainter (self )
@@ -346,11 +346,7 @@ def __init__(self):
346346 ConcurrentWidgetMixin .__init__ (self )
347347 self ._data : Optional [Table ] = None
348348 self ._learner : Optional [Learner ] = None
349- self .graph : Optional [FitterPlot ] = None
350349 self .__parameters_model = QStandardItemModel ()
351- self .__combo : Optional [QComboBox ] = None
352- self .__spin_min : Optional [QSpinBox ] = None
353- self .__spin_max : Optional [QSpinBox ] = None
354350
355351 self .__pending_parameter_index = self .parameter_index \
356352 if self .parameter_index != self .DEFAULT_PARAMETER_INDEX else None
@@ -369,11 +365,15 @@ def setup_gui(self):
369365 self ._add_controls ()
370366
371367 def _add_plot (self ):
368+ # This is a part of __init__
369+ # pylint: disable=attribute-defined-outside-init
372370 box = gui .vBox (self .mainArea )
373371 self .graph = FitterPlot ()
374372 box .layout ().addWidget (self .graph )
375373
376374 def _add_controls (self ):
375+ # This is a part of __init__
376+ # pylint: disable=attribute-defined-outside-init
377377 layout = QGridLayout ()
378378 gui .widgetBox (self .controlArea , "Settings" , orientation = layout )
379379 self .__combo = gui .comboBox (None , self , "parameter_index" ,
@@ -386,6 +386,7 @@ def _add_controls(self):
386386 button = gui .appendRadioButton (buttons , "Range:" )
387387 layout .addWidget (button , 1 , 0 )
388388
389+ # pylint: disable=use-dict-literal
389390 kw = dict (minv = - MIN_MAX_SPIN , maxv = MIN_MAX_SPIN ,
390391 alignment = Qt .AlignRight ,
391392 callback = self .__on_min_max_changed )
@@ -588,7 +589,7 @@ def _set_range_controls(self):
588589 self .__spin_max .setMaximum (MIN_MAX_SPIN )
589590 self .maximum = self .initial_parameters [param .name ]
590591
591- tip = f "Enter a list of comma-separated values"
592+ tip = "Enter a list of comma-separated values"
592593 if param .min is not None :
593594 if param .max is not None :
594595 self .edit .setToolTip (f"{ tip } between { param .min } and { param .max } ." )
0 commit comments