Skip to content

Commit ebc6ec5

Browse files
committed
Add type hint for default.hostapi
1 parent 1d30bc8 commit ebc6ec5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sounddevice.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2229,10 +2229,12 @@ def _default_device(self):
22292229
_lib.Pa_GetDefaultOutputDevice())
22302230

22312231
@property
2232-
def hostapi(self):
2232+
def hostapi(self): # type: ignore
22332233
"""Index of the default host API (read-only)."""
22342234
return _check(_lib.Pa_GetDefaultHostApi())
22352235

2236+
hostapi: int
2237+
22362238
def reset(self):
22372239
"""Reset all attributes to their "factory default"."""
22382240
vars(self).clear()

0 commit comments

Comments
 (0)