refactor(types): Phase 4 type hint sweep — core modules

This commit is contained in:
2026-02-28 15:13:55 -05:00
parent ca04026db5
commit 46c2f9a0ca
10 changed files with 52 additions and 42 deletions

View File

@@ -1,6 +1,8 @@
from __future__ import annotations
import time
import psutil
import threading
from typing import Any
class PerformanceMonitor:
def __init__(self) -> None:
@@ -98,7 +100,7 @@ class PerformanceMonitor:
self._last_alert_time = now
self.alert_callback("; ".join(alerts))
def get_metrics(self):
def get_metrics(self) -> dict[str, Any]:
with self._cpu_lock:
cpu_usage = self._cpu_usage
metrics = {