From ea63fcd431d932e60ff722e765acd235db018f99 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Tue, 15 Nov 2022 08:58:26 -0700 Subject: [PATCH] Fix mypy --- frigate/stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/stats.py b/frigate/stats.py index d067d4553..a9f1b8098 100644 --- a/frigate/stats.py +++ b/frigate/stats.py @@ -101,7 +101,7 @@ def get_processing_stats(config: FrigateConfig, stats: dict[str, str]) -> None: loop.close() -async def set_cpu_stats(all_stats: dict[str, str]) -> None: +async def set_cpu_stats(all_stats: dict[str, Any]) -> None: """Set cpu usage from top.""" cpu_stats = get_cpu_stats() @@ -109,7 +109,7 @@ async def set_cpu_stats(all_stats: dict[str, str]) -> None: all_stats["cpu_usages"] = cpu_stats -async def set_gpu_stats(config: FrigateConfig, all_stats: dict[str, str]) -> None: +async def set_gpu_stats(config: FrigateConfig, all_stats: dict[str, Any]) -> None: """Parse GPUs from hwaccel args and use for stats.""" hwaccel_args = []