Properly call super() in subclasses (#14124)

This commit is contained in:
gtsiam
2024-10-03 04:35:46 +03:00
committed by GitHub
parent 3c015bf822
commit 54900ae318
18 changed files with 19 additions and 38 deletions

View File

@@ -932,8 +932,7 @@ class TrackedObjectProcessor(threading.Thread):
ptz_autotracker_thread,
stop_event,
):
threading.Thread.__init__(self)
self.name = "detected_frames_processor"
super().__init__(name="detected_frames_processor")
self.config = config
self.dispatcher = dispatcher
self.tracked_objects_queue = tracked_objects_queue