Skip to content

Commit 84690bb

Browse files
committed
[yt-dlp] Make _Params["paths"] a Mapping[str, str]
`paths` accepts a dict of output paths (keys: 'home', 'temp', and OUTTMPL_TYPES keys). Typing it as `Mapping[str, str] | None` matches runtime behavior and avoids false positives when passing a dict to YoutubeDL params.
1 parent 5aea297 commit 84690bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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: Mapping[str, str] | None
109109
restrictfilenames: bool | None
110110
windowsfilenames: bool | None
111111
ignoreerrors: bool | Literal["only_download"] | None

0 commit comments

Comments
 (0)