mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2024-11-22 19:10:47 +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"
|
return f"Bus[{self.index}].device"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self) -> str:
|
||||||
return self.getter("name", is_string=True)
|
return self.getter("name", is_string=True)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def sr(self):
|
def sr(self) -> int:
|
||||||
return int(self.getter("sr"))
|
return int(self.getter("sr"))
|
||||||
|
|
||||||
|
|
||||||
|
@ -155,11 +155,11 @@ class StripDevice(IRemote):
|
|||||||
return f"Strip[{self.index}].device"
|
return f"Strip[{self.index}].device"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self) -> str:
|
||||||
return self.getter("name", is_string=True)
|
return self.getter("name", is_string=True)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def sr(self):
|
def sr(self) -> int:
|
||||||
return int(self.getter("sr"))
|
return int(self.getter("sr"))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user