From 694d27e68b24fd7c57da270f64a67cd4f2039a0f Mon Sep 17 00:00:00 2001 From: Soulsuck24 <79275800+Soulsuck24@users.noreply.github.com> Date: Tue, 19 May 2026 20:05:25 -0400 Subject: [PATCH 1/2] [yt-dlp] Add typing for postprocessor_hooks --- stubs/yt-dlp/yt_dlp/__init__.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stubs/yt-dlp/yt_dlp/__init__.pyi b/stubs/yt-dlp/yt_dlp/__init__.pyi index 934930379ec9..32fbb1cda93d 100644 --- a/stubs/yt-dlp/yt_dlp/__init__.pyi +++ b/stubs/yt-dlp/yt_dlp/__init__.pyi @@ -223,6 +223,7 @@ class _Params(TypedDict, total=False): write_pages: bool | None external_downloader_args: Literal["default"] | Mapping[str, Collection[str]] | Collection[str] | None postprocessor_args: Mapping[str, Collection[str]] | Collection[str] | None + postprocessor_hooks: list[Callable[[dict[str, Any]], object]] | None geo_verification_proxy: str | None geo_bypass: bool | None geo_bypass_country: str | None From 132429c430b4925e1fac82993955e16d8c64b005 Mon Sep 17 00:00:00 2001 From: Soulsuck24 <79275800+Soulsuck24@users.noreply.github.com> Date: Mon, 25 May 2026 18:31:03 -0400 Subject: [PATCH 2/2] Update __init__.pyi --- stubs/yt-dlp/yt_dlp/__init__.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stubs/yt-dlp/yt_dlp/__init__.pyi b/stubs/yt-dlp/yt_dlp/__init__.pyi index 32fbb1cda93d..4f3733dd8551 100644 --- a/stubs/yt-dlp/yt_dlp/__init__.pyi +++ b/stubs/yt-dlp/yt_dlp/__init__.pyi @@ -223,7 +223,7 @@ class _Params(TypedDict, total=False): write_pages: bool | None external_downloader_args: Literal["default"] | Mapping[str, Collection[str]] | Collection[str] | None postprocessor_args: Mapping[str, Collection[str]] | Collection[str] | None - postprocessor_hooks: list[Callable[[dict[str, Any]], object]] | None + postprocessor_hooks: Iterable[Callable[[dict[str, Any]], object]] geo_verification_proxy: str | None geo_bypass: bool | None geo_bypass_country: str | None @@ -231,6 +231,7 @@ class _Params(TypedDict, total=False): useid: bool | None compat_opts: dict[str, Any] | None logger: _LoggerProtocol + post_hooks: Iterable[Callable[[Incomplete], object] # Undocumented fields below. _deprecation_warnings: Collection[str] | None _warnings: Collection[str] | None