mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-22 16:51:35 +03:00
fix: plugin(sensors) - typehint for py38
This commit is contained in:
parent
3e9b949a0f
commit
abdbb00f3e
@ -347,7 +347,7 @@ class GlancesGrabSensors(object):
|
|||||||
|
|
||||||
raise ValueError(f"Unsupported sensor_type: {self.sensor_type}")
|
raise ValueError(f"Unsupported sensor_type: {self.sensor_type}")
|
||||||
|
|
||||||
def update(self) -> list[dict]:
|
def update(self) -> List[dict]:
|
||||||
"""Update the stats."""
|
"""Update the stats."""
|
||||||
if not self.init:
|
if not self.init:
|
||||||
return []
|
return []
|
||||||
|
Loading…
Reference in New Issue
Block a user