fix: stop broken typechecking

This commit is contained in:
Callum Leslie committed 2022-07-04 19:10:22 +01:00
1 parent ae25854de6
commit a335e67c8c
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -72,7 +72,7 @@ class TTSEngine:
print_substep("Saved Text to MP3 files successfully.", style="bold green")
return self.length, idx
def split_post(self, text: str, idx: int) -> str:
def split_post(self, text: str, idx: int):
split_files = []
split_text = [
x.group().strip()
+2 -1
View File
@@ -2,6 +2,7 @@ import random
from os import listdir, environ
from pathlib import Path
from random import randrange
from typing import Tuple
from moviepy.editor import VideoFileClip
from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip
@@ -10,7 +11,7 @@ from pytube import YouTube
from utils.console import print_step, print_substep
def get_start_and_end_times(video_length: int, length_of_clip: int) -> tuple[int, int]:
def get_start_and_end_times(video_length: int, length_of_clip: int) -> Tuple[int, int]:
"""Generates a random interval of time to be used as the background of the video.
Args: