From 41bcf5c42c7649e745d2c712dfd878d3eed32ee9 Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Thu, 17 Nov 2022 14:25:39 +0800 Subject: [PATCH] fix(core/collector): fix Python 3.5 syntax Signed-off-by: Xuehai Pan --- nvitop/core/collector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvitop/core/collector.py b/nvitop/core/collector.py index 90ed7d6..aa823b3 100644 --- a/nvitop/core/collector.py +++ b/nvitop/core/collector.py @@ -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',