diff --git a/stubs/yt-dlp/@tests/stubtest_allowlist.txt b/stubs/yt-dlp/@tests/stubtest_allowlist.txt index bc3da9768778..293acf692899 100644 --- a/stubs/yt-dlp/@tests/stubtest_allowlist.txt +++ b/stubs/yt-dlp/@tests/stubtest_allowlist.txt @@ -26,5 +26,3 @@ yt_dlp.utils.(_utils.)?prepend_extension yt_dlp.utils.(_utils.)?replace_extension # Unsure why this is here. yt_dlp.utils.jslib.devalue.TYPE_CHECKING -# internal API: -yt_dlp.utils._jsruntime.runtime_version_tuple diff --git a/stubs/yt-dlp/METADATA.toml b/stubs/yt-dlp/METADATA.toml index b96eae00d1ee..02ff49efc0c3 100644 --- a/stubs/yt-dlp/METADATA.toml +++ b/stubs/yt-dlp/METADATA.toml @@ -1,3 +1,3 @@ -version = "2025.11.12" +version = "2025.12.08" upstream_repository = "https://github.com/yt-dlp/yt-dlp" requires = ["websockets"] diff --git a/stubs/yt-dlp/yt_dlp/extractor/common.pyi b/stubs/yt-dlp/yt_dlp/extractor/common.pyi index d0c6b3523010..ab893d27e8e0 100644 --- a/stubs/yt-dlp/yt_dlp/extractor/common.pyi +++ b/stubs/yt-dlp/yt_dlp/extractor/common.pyi @@ -32,6 +32,7 @@ class _InfoDict(TypedDict, total=False): title: str | None uploader: str | None url: str | None + requested_formats: Iterable[_InfoDict] _StrNoDefaultOrNone: TypeAlias = str | None | type[NO_DEFAULT] _T = TypeVar("_T") diff --git a/stubs/yt-dlp/yt_dlp/utils/_utils.pyi b/stubs/yt-dlp/yt_dlp/utils/_utils.pyi index 6ea29d6ce002..b883127d346a 100644 --- a/stubs/yt-dlp/yt_dlp/utils/_utils.pyi +++ b/stubs/yt-dlp/yt_dlp/utils/_utils.pyi @@ -467,7 +467,7 @@ STR_FORMAT_RE_TMPL: Final[str] STR_FORMAT_TYPES: Final[str] def limit_length(s: str, length: int) -> str: ... -def version_tuple(v: str) -> tuple[int, ...]: ... +def version_tuple(v: str, *, lenient: bool = False) -> tuple[int, ...]: ... def is_outdated_version(version: str, limit: str, assume_new: bool = True) -> bool: ... def ytdl_is_updateable() -> bool: ... def args_to_str(args: str | Collection[str]) -> str: ...