mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Enable ruff check for ANN (#1139)
This commit is contained in:
@@ -49,7 +49,7 @@ class SmartChildDevice(SmartDevice):
|
||||
self._update_internal_state(info)
|
||||
self._components = component_info
|
||||
|
||||
async def update(self, update_children: bool = True):
|
||||
async def update(self, update_children: bool = True) -> None:
|
||||
"""Update child module info.
|
||||
|
||||
The parent updates our internal info so just update modules with
|
||||
@@ -57,7 +57,7 @@ class SmartChildDevice(SmartDevice):
|
||||
"""
|
||||
await self._update(update_children)
|
||||
|
||||
async def _update(self, update_children: bool = True):
|
||||
async def _update(self, update_children: bool = True) -> None:
|
||||
"""Update child module info.
|
||||
|
||||
Internal implementation to allow patching of public update in the cli
|
||||
@@ -118,5 +118,5 @@ class SmartChildDevice(SmartDevice):
|
||||
dev_type = DeviceType.Unknown
|
||||
return dev_type
|
||||
|
||||
def __repr__(self):
|
||||
def __repr__(self) -> str:
|
||||
return f"<{self.device_type} {self.alias} ({self.model}) of {self._parent}>"
|
||||
|
Reference in New Issue
Block a user