From 6cae34647c8fa41060cd9de5a7de3ce6239b6b19 Mon Sep 17 00:00:00 2001 From: Semyon Moroz Date: Tue, 12 Aug 2025 11:00:56 +0000 Subject: [PATCH] [yt-dlp] Update to 2025.8.11 (#14564) --- stubs/yt-dlp/METADATA.toml | 2 +- stubs/yt-dlp/yt_dlp/__init__.pyi | 1 + stubs/yt-dlp/yt_dlp/globals.pyi | 5 +++-- stubs/yt-dlp/yt_dlp/utils/_utils.pyi | 4 +--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stubs/yt-dlp/METADATA.toml b/stubs/yt-dlp/METADATA.toml index c382568e9..5c8c5610a 100644 --- a/stubs/yt-dlp/METADATA.toml +++ b/stubs/yt-dlp/METADATA.toml @@ -1,3 +1,3 @@ -version = "2025.07.21" +version = "2025.8.11" upstream_repository = "https://github.com/yt-dlp/yt-dlp" requires = ["websockets"] diff --git a/stubs/yt-dlp/yt_dlp/__init__.pyi b/stubs/yt-dlp/yt_dlp/__init__.pyi index b89f59a4e..0b384f91e 100644 --- a/stubs/yt-dlp/yt_dlp/__init__.pyi +++ b/stubs/yt-dlp/yt_dlp/__init__.pyi @@ -197,6 +197,7 @@ class _Params(TypedDict, total=False): encoding: str | None extract_flat: bool | Literal["in_playlist", "discard", "discard_in_playlist"] | None live_from_start: bool | None + warn_when_outdated: bool | None wait_for_video: tuple[int, int] | None mark_watched: bool | None merge_output_format: str | None diff --git a/stubs/yt-dlp/yt_dlp/globals.pyi b/stubs/yt-dlp/yt_dlp/globals.pyi index 45664ccc9..cb97371d9 100644 --- a/stubs/yt-dlp/yt_dlp/globals.pyi +++ b/stubs/yt-dlp/yt_dlp/globals.pyi @@ -1,5 +1,5 @@ from collections import defaultdict -from typing import Any, Generic, TypeVar +from typing import Any, Generic, Literal, TypeVar _T = TypeVar("_T") @@ -16,4 +16,5 @@ plugin_ies: Indirect[dict[str, Any]] plugin_pps: Indirect[dict[str, Any]] plugin_ies_overrides: Indirect[defaultdict[str, Any]] IN_CLI: Indirect[bool] -LAZY_EXTRACTORS: Indirect[None | bool] +LAZY_EXTRACTORS: Indirect[bool | None] +WINDOWS_VT_MODE: Indirect[Literal[False] | None] # Code takes into account that only False here diff --git a/stubs/yt-dlp/yt_dlp/utils/_utils.pyi b/stubs/yt-dlp/yt_dlp/utils/_utils.pyi index 37545191f..eca800939 100644 --- a/stubs/yt-dlp/yt_dlp/utils/_utils.pyi +++ b/stubs/yt-dlp/yt_dlp/utils/_utils.pyi @@ -32,6 +32,7 @@ from yt_dlp.networking import Response from .. import _Params from ..extractor.common import InfoExtractor, _InfoDict +from ..globals import WINDOWS_VT_MODE as WINDOWS_VT_MODE from ..options import _YoutubeDLOptionParser from ..YoutubeDL import YoutubeDL @@ -574,9 +575,6 @@ def get_system_config_dirs(package_name: str) -> Iterator[str]: ... def time_seconds(**kwargs: float) -> int: ... def jwt_encode_hs256(payload_data: Any, key: str, headers: Mapping[str, Any] = ...) -> bytes: ... # Passed to json.dumps(). def jwt_decode_hs256(jwt: str) -> Any: ... # Returns json.loads() output. - -WINDOWS_VT_MODE: bool | None - def supports_terminal_sequences(stream: IO[Any]) -> bool: ... def windows_enable_vt_mode() -> None: ... def remove_terminal_sequences(string: str) -> str: ...