Video editing with Python
fix linting
osaajani99f8f3cd49a6
diff --git a/moviepy/video/VideoClip.py b/moviepy/video/VideoClip.pyindex 3ff42891..d8a3a96f 100644--- a/moviepy/video/VideoClip.py+++ b/moviepy/video/VideoClip.py@@ -1727,13 +1727,14 @@ class TextClip(ImageClip):if bg_radius is None:bg_radius = 0-+if bg_radius != 0:-- img = Image.new(img_mode, (img_width, img_height), color=(0,0,0,0))+ img = Image.new(img_mode, (img_width, img_height), color=(0, 0, 0, 0))pil_font = ImageFont.truetype(font, font_size)draw = ImageDraw.Draw(img)- draw.rounded_rectangle([0, 0, img_width, img_height], radius=bg_radius, fill=bg_color)+ draw.rounded_rectangle(+ [0, 0, img_width, img_height], radius=bg_radius, fill=bg_color+ )else:img = Image.new(img_mode, (img_width, img_height), color=bg_color)pil_font = ImageFont.truetype(font, font_size)diff --git a/moviepy/video/fx/Scroll.py b/moviepy/video/fx/Scroll.pyindex 1d469d11..d5c9d60a 100644--- a/moviepy/video/fx/Scroll.py+++ b/moviepy/video/fx/Scroll.py@@ -30,7 +30,6 @@ class Scroll(Effect):y_start=0,apply_to="mask",):-self.w = wself.h = hself.x_speed = x_speeddiff --git a/moviepy/video/io/ffmpeg_reader.py b/moviepy/video/io/ffmpeg_reader.pyindex b22aa2b6..16700ee1 100644--- a/moviepy/video/io/ffmpeg_reader.py+++ b/moviepy/video/io/ffmpeg_reader.py@@ -459,12 +459,12 @@ class FFmpegInfosParser:# for default streams, set their numbers globally, so it's# easy to get without iterating allif self._current_stream["default"]:- self.result[f"default_{stream_type_lower}_input_number"] = (- input_number- )- self.result[f"default_{stream_type_lower}_stream_number"] = (- stream_number- )+ self.result[+ f"default_{stream_type_lower}_input_number"+ ] = input_number+ self.result[+ f"default_{stream_type_lower}_stream_number"+ ] = stream_number# exit chapterif self._current_chapter: