mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-21 06:45:24 -06:00
fix(core/collector): fix Python 3.5 syntax
Signed-off-by: Xuehai Pan <XuehaiPan@pku.edu.cn>
This commit is contained in:
parent
244f3babe4
commit
41bcf5c42c
1 changed files with 1 additions and 1 deletions
|
|
@ -168,11 +168,11 @@ def take_snapshots(
|
|||
return SnapshotResult(devices, gpu_processes)
|
||||
|
||||
|
||||
# pylint: disable-next=too-many-arguments
|
||||
def collect_in_background(
|
||||
on_collect: Callable[[Dict[str, float]], bool],
|
||||
collector: Optional['ResourceMetricCollector'] = None,
|
||||
interval: Optional[float] = None,
|
||||
*,
|
||||
on_start: Optional[Callable[['ResourceMetricCollector'], None]] = None,
|
||||
on_stop: Optional[Callable[['ResourceMetricCollector'], None]] = None,
|
||||
tag: str = 'metrics-daemon',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue