Skip to content

Commit

Permalink
Fix type hint for parameter objects that are part of the linear fit w…
Browse files Browse the repository at this point in the history
…idget
  • Loading branch information
krzywon committed Feb 24, 2025
1 parent ce5b137 commit 3c2518c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sas/qtgui/Plotting/LinearFit.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def __init__(self, parent: Optional[PlotterBase] = None,
# Display the fittings values
self.default_A: float = self.model.getParam('A')
self.default_B: float = self.model.getParam('B')
self.cstA: float = Fittings.Parameter(self.model, 'A', self.default_A)
self.cstB: float = Fittings.Parameter(self.model, 'B', self.default_B)
self.cstA: Fittings.Parameter = Fittings.Parameter(self.model, 'A', self.default_A)
self.cstB: Fittings.Parameter = Fittings.Parameter(self.model, 'B', self.default_B)
self.transform = DataTransform

self.q_sliders: Optional[QRangeSlider] = None
Expand Down

0 comments on commit 3c2518c

Please sign in to comment.