Skip to content

Commit 8d08eb7

Browse files
[yt-dlp] Make _Params["paths"] a dict[str, str] (#14998)
`paths` accepts a dict of output paths (keys: 'home', 'temp', and OUTTMPL_TYPES keys). Typing it as `dict[str, str] | None` matches runtime behavior and avoids false positives when passing a dict to YoutubeDL params. --------- Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
1 parent ebbce22 commit 8d08eb7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stubs/yt-dlp/yt_dlp/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class _Params(TypedDict, total=False):
105105
listformats: bool | None
106106
outtmpl: str | Mapping[str, str] | None
107107
outtmpl_na_placeholder: str | None
108-
paths: str | None
108+
paths: dict[str, str] | None
109109
restrictfilenames: bool | None
110110
windowsfilenames: bool | None
111111
ignoreerrors: bool | Literal["only_download"] | None

0 commit comments

Comments
 (0)