Skip to content

Add yt-dlp stubs #14216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jul 26, 2025
Prev Previous commit
Add new items since last version
  • Loading branch information
Tatsh committed Jul 26, 2025
commit 44a9721e2ff7d46ccdaf9bcb795acbea7980db9b
2 changes: 2 additions & 0 deletions stubs/yt-dlp/@tests/stubtest_allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ yt_dlp.utils.(_utils.)?is_iterable_like
# Generated with functools.partial.
yt_dlp.utils.(_utils.)?prepend_extension
yt_dlp.utils.(_utils.)?replace_extension
# Unsure why this is here.
yt_dlp.utils.jslib.devalue.TYPE_CHECKING
2 changes: 1 addition & 1 deletion stubs/yt-dlp/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version = "2025.05.*"
version = "2025.07.21"
upstream_repository = "https://github.com/yt-dlp/yt-dlp"
requires = ["websockets"]
2 changes: 2 additions & 0 deletions stubs/yt-dlp/yt_dlp/jsinterp.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class JS_Throw(ExtractorError):
class LocalNameSpace(collections.ChainMap[str, Any]):
def __setitem__(self, key: str, value: Any) -> None: ...
def __delitem__(self, key: str) -> NoReturn: ...
def set_local(self, key: str, value: Any) -> None: ...
def get_local(self, key: str) -> Any: ...

class Debugger:
ENABLED: bool
Expand Down
Empty file.
9 changes: 9 additions & 0 deletions stubs/yt-dlp/yt_dlp/utils/jslib/devalue.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from collections.abc import Callable, Generator
from typing import Any

def parse_iter(
parsed: Any, /, *, revivers: dict[str, Callable[[list[Any]], Any]] | None = None # parsed: Any from the signature.
) -> Generator[TypeError | IndexError | ValueError, Any, float | None]: ...
def parse(
parsed: Any, /, *, revivers: dict[str, Callable[[Any], Any]] | None = None # parsed: Any from the signature.
) -> Any: ... # returns StopIteration.value if it is raised.
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy