mirror of
https://github.com/Paillat-dev/viralfactory.git
synced 2026-01-02 01:06:19 +00:00
🏷️ Add types and function signatures
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import moviepy as mp
|
||||||
from abc import abstractmethod
|
from abc import abstractmethod
|
||||||
|
|
||||||
from ..BaseEngine import BaseEngine
|
from ..BaseEngine import BaseEngine
|
||||||
@@ -5,5 +6,4 @@ from ..BaseEngine import BaseEngine
|
|||||||
|
|
||||||
class BaseCaptioningEngine(BaseEngine):
|
class BaseCaptioningEngine(BaseEngine):
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def get_captions(self) -> None:
|
def get_captions(self, words: list[dict[str, str]] = None) -> list[mp.TextClip]: ...
|
||||||
...
|
|
||||||
|
|||||||
@@ -9,5 +9,4 @@ class BaseUploadEngine(BaseEngine):
|
|||||||
...
|
...
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def upload(self):
|
def upload(self, title: str, description: str, path: str): ...
|
||||||
...
|
|
||||||
|
|||||||
Reference in New Issue
Block a user