Modernizing Typing

All Dict, List were converted to dict, list, see: https://mypy.readthedocs.io/en/stable/builtin_types.html#generic-types
This commit is contained in:
Sebastian Englbrecht
2022-04-16 17:38:07 +02:00
committed by Blake Blackshear
parent a1afade9ba
commit ebf4e43ced
4 changed files with 9 additions and 11 deletions

View File

@@ -8,13 +8,13 @@ import signal
from frigate.edgetpu import EdgeTPUProcess
from frigate.util import restart_frigate
from multiprocessing.synchronize import Event
from typing import Dict
from typing import dict
logger = logging.getLogger(__name__)
class FrigateWatchdog(threading.Thread):
def __init__(self, detectors: Dict[str, EdgeTPUProcess], stop_event: Event):
def __init__(self, detectors: dict[str, EdgeTPUProcess], stop_event: Event):
threading.Thread.__init__(self)
self.name = "frigate_watchdog"
self.detectors = detectors