fix: plugin(sensors) - typehint for py38

This commit is contained in:
Bharath Vignesh J K 2024-05-15 14:47:53 +05:30
parent 0447e210e5
commit d94b0b4e92

View File

@ -347,7 +347,7 @@ class GlancesGrabSensors(object):
raise ValueError(f"Unsupported sensor_type: {self.sensor_type}")
def update(self) -> list[dict]:
def update(self) -> List[dict]:
"""Update the stats."""
if not self.init:
return []