add missing type hints to device mixins

This commit is contained in:
onyx-and-iris 2022-10-16 17:47:55 +01:00
parent f4fc58cea0
commit 907df78b37
2 changed files with 4 additions and 4 deletions

View File

@ -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"))

View File

@ -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"))