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
2 changes: 2 additions & 0 deletions stubs/yt-dlp/yt_dlp/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import optparse

Check failure on line 1 in stubs/yt-dlp/yt_dlp/__init__.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

Import "optparse" is not accessed (reportUnusedImport)
from collections.abc import Callable, Collection, Iterator, Mapping
from typing import Any, Literal, NamedTuple, Protocol, TypedDict, type_check_only

Check failure on line 3 in stubs/yt-dlp/yt_dlp/__init__.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

Import "NamedTuple" is not accessed (reportUnusedImport)
from typing_extensions import NotRequired

from .extractor import gen_extractors, list_extractors
from .networking.impersonate import ImpersonateTarget

Check failure on line 7 in stubs/yt-dlp/yt_dlp/__init__.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

Import "ImpersonateTarget" is not accessed (reportUnusedImport)
from .YoutubeDL import YoutubeDL

__all__ = ["YoutubeDL", "gen_extractors", "list_extractors", "main", "parse_options"]

Check failure on line 10 in stubs/yt-dlp/yt_dlp/__init__.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

"parse_options" is specified in __all__ but is not present in module (reportUnsupportedDunderAll)

Check failure on line 10 in stubs/yt-dlp/yt_dlp/__init__.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

"main" is specified in __all__ but is not present in module (reportUnsupportedDunderAll)

@type_check_only
class _LoggerProtocol(Protocol): # noqa: Y046
Expand Down Expand Up @@ -223,13 +223,15 @@
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: Iterable[Callable[[dict[str, Any]], object]]

Check failure on line 226 in stubs/yt-dlp/yt_dlp/__init__.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

"Iterable" is not defined (reportUndefinedVariable)
geo_verification_proxy: str | None
geo_bypass: bool | None
geo_bypass_country: str | None
geo_bypass_ip_block: str | None
useid: bool | None
compat_opts: dict[str, Any] | None
logger: _LoggerProtocol
post_hooks: Iterable[Callable[[Incomplete], object]

Check failure on line 234 in stubs/yt-dlp/yt_dlp/__init__.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

"Incomplete" is not defined (reportUndefinedVariable)

Check failure on line 234 in stubs/yt-dlp/yt_dlp/__init__.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

"[" was not closed

Check failure on line 234 in stubs/yt-dlp/yt_dlp/__init__.pyi

View workflow job for this annotation

GitHub Actions / pyright: Run test cases (Linux, 3.13)

"Iterable" is not defined (reportUndefinedVariable)
# Undocumented fields below.
_deprecation_warnings: Collection[str] | None
_warnings: Collection[str] | None
Expand All @@ -248,3 +250,3 @@

def parse_options(argv: Collection[str] | None = None) -> _ParsedOptions: ...
def main(argv: list[str] | None = None) -> int: ...
Loading