Skip to content

Commit e338be7

Browse files
committed
more ignoring
1 parent 2c30f6f commit e338be7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sounddevice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ def read(self, frames):
12421242
"""
12431243
channels, _ = _split(self._channels)
12441244
samplesize, _ = _split(self._samplesize)
1245-
data = _ffi.new('signed char[]', channels * samplesize * frames)
1245+
data = _ffi.new('signed char[]', channels * samplesize * frames) # type: ignore
12461246
err = _lib.Pa_ReadStream(self._ptr, data, frames)
12471247
if err == _lib.paInputOverflowed:
12481248
overflowed = True
@@ -1334,7 +1334,7 @@ def write(self, data):
13341334
pass # input is not a buffer
13351335
_, samplesize = _split(self._samplesize)
13361336
_, channels = _split(self._channels)
1337-
samples, remainder = divmod(len(data), samplesize)
1337+
samples, remainder = divmod(len(data), samplesize) # type: ignore
13381338
if remainder:
13391339
raise ValueError('len(data) not divisible by samplesize')
13401340
frames, remainder = divmod(samples, channels)

0 commit comments

Comments
 (0)