Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -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: ...
|
||||
@@ -0,0 +1,2 @@
|
||||
class DownloadError(Exception): ...
|
||||
class UnsupportedError(DownloadError): ...
|
||||
Reference in New Issue
Block a user