Skip to content

Commit 237d98b

Browse files
dkorlovsmlim19
authored andcommitted
[python linter] Unused 'type: ignore' comment
1 parent bffc208 commit 237d98b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gprofiler/system_metrics.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,7 @@ def _get_average_memory_utilization(self) -> Optional[float]:
195195
return average_memory
196196

197197
def _get_cpu_utilization(self) -> float:
198-
return psutil.cpu_percent(interval=None) # type: ignore # virtual_memory doesn't have a
199-
# return type is types-psutil
198+
return psutil.cpu_percent(interval=None)
200199

201200
def _get_hw_metrics(self) -> List[float]:
202201
current_length = len(self._hw_metrics["cpu_freq"])

0 commit comments

Comments
 (0)