From 51e6db459ad761342e4a2673e8e0cc68d1bf59c9 Mon Sep 17 00:00:00 2001 From: Ryan Gibson Date: Thu, 5 Oct 2023 14:42:13 -0400 Subject: [PATCH] Test multiple mypy ignore --- tests/test_wavsteg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_wavsteg.py b/tests/test_wavsteg.py index 4ac6316..1d83fe6 100644 --- a/tests/test_wavsteg.py +++ b/tests/test_wavsteg.py @@ -28,7 +28,7 @@ def write_random_wav(self, filename: str, num_channels: int, sample_width: int, data = np.random.randint(0, 2 ** (8 * sample_width), dtype=dtype, size=num_frames * num_channels) # note: typing does not recognize that "writeframes() accepts any bytes-like object" (see documentation) - file.writeframes(data) # type: ignore[unused-ignore] + file.writeframes(data) # type: ignore[arg-type,unused-ignore] def write_random_file(self, filename: str, num_bytes: int) -> None: with open(filename, "wb") as file: