From 53dfeac19b1d92a3fe1b25eb8f5494aa10e8c76b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 26 Sep 2023 05:25:00 +0000 Subject: [PATCH] =?UTF-8?q?fix(pre=5Fcommit):=20=F0=9F=8E=A8=20auto=20form?= =?UTF-8?q?at=20pre-commit=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supervision/utils/video.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/supervision/utils/video.py b/supervision/utils/video.py index 5beae6ee..337768b1 100644 --- a/supervision/utils/video.py +++ b/supervision/utils/video.py @@ -82,10 +82,10 @@ class VideoSink: ``` """ - def __init__(self, target_path: str, video_info: VideoInfo, codec: str = 'mp4v'): + def __init__(self, target_path: str, video_info: VideoInfo, codec: str = "mp4v"): self.target_path = target_path self.video_info = video_info - self.__codec = codec + self.__codec = codec self.__writer = None def __enter__(self): @@ -93,7 +93,7 @@ class VideoSink: self.__fourcc = cv2.VideoWriter_fourcc(*self.__codec) except: print(f"{self.__codec} does not exist. Defaulting to mp4v...") - self.__fourcc = cv2.VideoWriter_fourcc(*'mp4v') + self.__fourcc = cv2.VideoWriter_fourcc(*"mp4v") self.__writer = cv2.VideoWriter( self.target_path, self.__fourcc,