Refactor code structure for improved readability and maintainability
CI / Quality Checks (push) Failing after 9s
CI / Test Suite (push) Successful in 10s

This commit is contained in:
ВяткинАртём
2026-05-27 17:06:39 +03:00
parent d06bd989f3
commit 59aaa9c4d7
31 changed files with 1416 additions and 543 deletions
+13
View File
@@ -0,0 +1,13 @@
from collections.abc import Mapping
from types import TracebackType
class YoutubeDL:
def __init__(self, params: Mapping[str, object] | None = ...) -> None: ...
def __enter__(self) -> YoutubeDL: ...
def __exit__(
self,
exc_type: type[BaseException] | None,
exc: BaseException | None,
traceback: TracebackType | None,
) -> bool | None: ...
def extract_info(self, url: str, download: bool = ...) -> object: ...
+2
View File
@@ -0,0 +1,2 @@
class DownloadError(Exception): ...
class UnsupportedError(DownloadError): ...