Skip to content

Commit

Permalink
Test multiple mypy ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ragibson committed Oct 5, 2023
1 parent 1f1af6f commit 51e6db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_wavsteg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 51e6db4

Please sign in to comment.