Skip to content

Commit 42c9644

Browse files
committed
type-erase some internal variables
1 parent 520dc27 commit 42c9644

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sounddevice.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
next(iter(_sounddevice_data.__path__)), 'portaudio-binaries', _libname)
8686
_lib: ... = _ffi.dlopen(_libname)
8787

88-
_sampleformats = {
88+
_sampleformats: ... = {
8989
'float32': _lib.paFloat32,
9090
'int32': _lib.paInt32,
9191
'int24': _lib.paInt24,
@@ -2052,7 +2052,7 @@ class _InputOutputPair:
20522052
_indexmapping = {'input': 0, 'output': 1}
20532053

20542054
def __init__(self, parent, default_attr):
2055-
self._pair = [None, None]
2055+
self._pair: ... = [None, None]
20562056
self._parent = parent
20572057
self._default_attr = default_attr
20582058

@@ -2706,7 +2706,7 @@ def _check_dtype(dtype):
27062706

27072707

27082708
def _get_stream_parameters(kind, device, channels, dtype, latency,
2709-
extra_settings, samplerate):
2709+
extra_settings: ..., samplerate):
27102710
"""Get parameters for one direction (input or output) of a stream."""
27112711
assert kind in ('input', 'output')
27122712
if device is None:

0 commit comments

Comments
 (0)