Skip to content

Commit

Permalink
fix: replace broken signature for dynamic functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kmnhan committed Jul 8, 2024
1 parent efc6089 commit 39a3954
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/erlab/analysis/fit/functions/dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def argnames(self) -> list[str]:
return ["x"]

@property
def kwargs(self) -> dict[str, int | float]:
return {}
def kwargs(self) -> list[tuple[str, float]]:
return []

@no_type_check
def __call__(self, **kwargs):
Expand Down Expand Up @@ -247,7 +247,7 @@ def argnames(self) -> list[str]:
return args

@property
def kwargs(self):
def kwargs(self) -> list[tuple[str, float]]:
kws: list[tuple[str, float]] = []

if self.background == "constant" or self.background == "linear":
Expand Down

0 comments on commit 39a3954

Please sign in to comment.