mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2024-11-15 16:40:46 +00:00
add missing type hints to device mixins
This commit is contained in:
parent
f4fc58cea0
commit
907df78b37
@ -157,11 +157,11 @@ class BusDevice(IRemote):
|
||||
return f"Bus[{self.index}].device"
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
def name(self) -> str:
|
||||
return self.getter("name", is_string=True)
|
||||
|
||||
@property
|
||||
def sr(self):
|
||||
def sr(self) -> int:
|
||||
return int(self.getter("sr"))
|
||||
|
||||
|
||||
|
@ -155,11 +155,11 @@ class StripDevice(IRemote):
|
||||
return f"Strip[{self.index}].device"
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
def name(self) -> str:
|
||||
return self.getter("name", is_string=True)
|
||||
|
||||
@property
|
||||
def sr(self):
|
||||
def sr(self) -> int:
|
||||
return int(self.getter("sr"))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user