Skip to content

yt_dlp 2026.07.04 PostProcessor.to_screen mismatch #16083

Description

@h-takeyeah

Source: PostProcessor.to_screen is defined as

# class PostProcessor
def to_screen(self, text, prefix=True, *args, **kwargs):

https://github.com/yt-dlp/yt-dlp/blob/fdec00e0bf530dc6c3cc7b1dd780e95d9ae460e9/yt_dlp/YoutubeDL.py#L1003

Typeshed: typeshed has correspond definition here, which does not meet above.

def to_screen(
self,
text: str,
prefix: bool = True,
*,
message: str,
skip_eol: bool = False,
quiet: bool | None = None,
only_once: bool = False,
) -> None: ...

details

PostProcessor.to_screen calls YoutubeDL.to_screen.
Since YoutubeDL.to_screen has the signature below, keyword args of PostProcessor.to_screen will be { skip_eol, quiet, only_once } and message is unnecessary.

# class YoutubeDL
def to_screen(self, message, skip_eol=False, quiet=None, only_once=False):

https://github.com/yt-dlp/yt-dlp/blob/fdec00e0bf530dc6c3cc7b1dd780e95d9ae460e9/yt_dlp/YoutubeDL.py#L1003

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions