Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e2c5795

Browse files
committedAug 25, 2024·
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fbed1cf commit e2c5795

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎financial/simple_moving_average.py

Lines changed: 3 additions & 1 deletion
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)
Please sign in to comment.