From 340d973abac0f676552e52ba5f0d17ff2e6aabde Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Sun, 8 Dec 2024 19:10:23 -0500 Subject: [PATCH] Fix mypy error --- tests/test_audioframe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_audioframe.py b/tests/test_audioframe.py index d67e181ce..c6bf87b3f 100644 --- a/tests/test_audioframe.py +++ b/tests/test_audioframe.py @@ -115,11 +115,11 @@ def test_from_ndarray_value_error() -> None: AudioFrame.from_ndarray(array, format="flt", layout="mono") # incorrect number of dimensions - array = np.zeros(shape=(1, 160, 2), dtype="f4") + array2 = np.zeros(shape=(1, 160, 2), dtype="f4") with pytest.raises( ValueError, match="Expected numpy array with ndim `2` but got `3`" ) as cm: - AudioFrame.from_ndarray(array, format="flt", layout="mono") + AudioFrame.from_ndarray(array2, format="flt", layout="mono") # incorrect shape array = np.zeros(shape=(2, 160), dtype="f4")