Skip to content

Commit afa715d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f1369ec commit afa715d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

financial/simple_moving_average.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ def simple_moving_average(
3535
raise ValueError("Window size must be a positive integer")
3636

3737
if window_size > len(data):
38-
raise ValueError("Window size must be smaller than the total length of the time series")
38+
raise ValueError(
39+
"Window size must be smaller than the total length of the time series"
40+
)
3941

4042
sma: list[float | None] = []
4143

0 commit comments

Comments
 (0)