Skip to content

Commit

Permalink
Revert "Remove type-checking note in test_wavsteg"
Browse files Browse the repository at this point in the history
This reverts commit 9bdad49.
  • Loading branch information
ragibson committed Oct 5, 2023
1 parent 9bdad49 commit 43f61de
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)
file.writeframes(data) # type: ignore

def write_random_file(self, filename: str, num_bytes: int) -> None:
with open(filename, "wb") as file:
Expand Down

0 comments on commit 43f61de

Please sign in to comment.