Skip to content

Commit 4355914

Browse files
authored
Update ema_filter.py
1 parent 2e11935 commit 4355914

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

audio_filters/ema_filter.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""
66

77
import numpy as np
8-
from typing import List
8+
from typing import Any
99

1010

1111
class EMAFilter:
@@ -34,13 +34,13 @@ def __init__(self, alpha: float) -> None:
3434
self.alpha = alpha
3535
self.ema_value = None
3636

37-
def apply(self, audio_signal: List[float]) -> np.ndarray:
37+
def apply(self, audio_signal: list[float]) -> np.ndarray:
3838
"""
3939
Apply the EMA filter to a sequence of
4040
audio signal values.
4141
4242
Parameters:
43-
audio_signal (List[float]): List of numerical values
43+
audio_signal (list[float]): List of numerical values
4444
representing the audio signal.
4545
4646
Returns:

0 commit comments

Comments
 (0)