We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfb8d23 commit 3c8f6b7Copy full SHA for 3c8f6b7
sounddevice.py
@@ -54,6 +54,7 @@
54
import os as _os
55
import platform as _platform
56
import sys as _sys
57
+import typing as _t
58
from ctypes.util import find_library as _find_library
59
from _sounddevice import ffi as _ffi
60
@@ -69,7 +70,7 @@
69
70
break
71
else:
72
raise OSError('PortAudio library not found')
- _lib = _ffi.dlopen(_libname)
73
+ _lib: _t.Any = _ffi.dlopen(_libname)
74
except OSError:
75
if _platform.system() == 'Darwin':
76
_libname = 'libportaudio.dylib'
@@ -83,7 +84,7 @@
83
84
import _sounddevice_data
85
_libname = _os.path.join(
86
next(iter(_sounddevice_data.__path__)), 'portaudio-binaries', _libname)
87
88
89
_sampleformats = {
90
'float32': _lib.paFloat32,
0 commit comments