added ruff code reivew

This commit is contained in:
ykcheungab
2026-09-27 19:21:55 +08:00
parent 07da372204
commit e2ac36269c
110 changed files with 890 additions and 426 deletions
+3 -3
View File
@@ -42,8 +42,8 @@ from __future__ import annotations
import os
import queue
import threading
import time
from typing import Any, Callable, Iterable, Sequence
from collections.abc import Callable, Iterable, Sequence
from typing import Any
import cv2
import numpy as np
@@ -243,7 +243,7 @@ class StreamRecorder:
"fourcc": self.fourcc,
}
def __enter__(self) -> "StreamRecorder":
def __enter__(self) -> StreamRecorder:
return self
def __exit__(self, exc_type, exc, tb) -> bool: