Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[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.
  • Loading branch information
Marcin795 committed Nov 8, 2025
commit 84690bb8722b59339caade2c9c0a790102beecb3
2 changes: 1 addition & 1 deletion stubs/yt-dlp/yt_dlp/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class _Params(TypedDict, total=False):
listformats: bool | None
outtmpl: str | Mapping[str, str] | None
outtmpl_na_placeholder: str | None
paths: str | None
paths: Mapping[str, str] | None
restrictfilenames: bool | None
windowsfilenames: bool | None
ignoreerrors: bool | Literal["only_download"] | None
Expand Down