Skip to content

Commit

Permalink
fix: typing compatible with python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Tveten committed Jan 2, 2025
1 parent bf6c398 commit b1b73c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skchange/penalties/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def values(self) -> np.ndarray:
return self.scale * base_values

@property
def _base_values(self) -> np.ndarray | float:
def _base_values(self) -> Union[np.ndarray, float]:
"""Get the base penalty values.
Returns
Expand Down

0 comments on commit b1b73c5

Please sign in to comment.