mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
[yt-dlp] Update to 2025.8.20 (#14609)
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
version = "2025.8.11"
|
||||
version = "2025.8.20"
|
||||
upstream_repository = "https://github.com/yt-dlp/yt-dlp"
|
||||
requires = ["websockets"]
|
||||
|
||||
@@ -19,6 +19,7 @@ from ..YoutubeDL import YoutubeDL
|
||||
class _InfoDict(TypedDict, total=False):
|
||||
age_limit: int
|
||||
availability: Literal["private", "premium_only", "subscriber_only", "needs_auth", "unlisted", "public"] | None
|
||||
available_at: int
|
||||
creator: str | None
|
||||
comment_count: int | None
|
||||
duration: int | None
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
from ._deprecated import (
|
||||
bytes_to_intlist as bytes_to_intlist,
|
||||
compiled_regex_type as compiled_regex_type,
|
||||
intlist_to_bytes as intlist_to_bytes,
|
||||
jwt_encode_hs256 as jwt_encode_hs256,
|
||||
)
|
||||
from ._utils import (
|
||||
ACCENT_CHARS as ACCENT_CHARS,
|
||||
BOMS as BOMS,
|
||||
@@ -149,7 +155,7 @@ from ._utils import (
|
||||
join_nonempty as join_nonempty,
|
||||
js_to_json as js_to_json,
|
||||
jwt_decode_hs256 as jwt_decode_hs256,
|
||||
jwt_encode_hs256 as jwt_encode_hs256,
|
||||
jwt_encode as jwt_encode,
|
||||
limit_length as limit_length,
|
||||
locked_file as locked_file,
|
||||
long_to_bytes as long_to_bytes,
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import re
|
||||
from collections.abc import Mapping
|
||||
from typing import Any
|
||||
from typing_extensions import deprecated
|
||||
|
||||
@deprecated("Use `list` instead.")
|
||||
def bytes_to_intlist(bs: bytes) -> list[int]: ...
|
||||
@deprecated("Use `bytes` instead.")
|
||||
def intlist_to_bytes(xs: list[int]) -> bytes: ...
|
||||
@deprecated("Use `yt_dlp.utils.jwt_encode` instead.")
|
||||
def jwt_encode_hs256(payload_data: Any, key: str, headers: Mapping[str, Any] = ...) -> bytes: ... # Passed to json.dumps().
|
||||
|
||||
compiled_regex_type: type[re.Pattern[Any]]
|
||||
@@ -23,7 +23,7 @@ from functools import cache
|
||||
from optparse import Values
|
||||
from os import PathLike
|
||||
from re import Pattern
|
||||
from typing import IO, Any, AnyStr, BinaryIO, Generic, NamedTuple, TextIO, TypeVar, overload
|
||||
from typing import IO, Any, AnyStr, BinaryIO, Generic, Literal, NamedTuple, TextIO, TypeVar, overload
|
||||
from typing_extensions import Self, TypeAlias
|
||||
from urllib.parse import _QueryType, _QuoteVia
|
||||
from xml.etree import ElementTree as ET
|
||||
@@ -573,7 +573,9 @@ def get_executable_path() -> str: ...
|
||||
def get_user_config_dirs(package_name: str) -> Iterator[str]: ...
|
||||
def get_system_config_dirs(package_name: str) -> Iterator[str]: ...
|
||||
def time_seconds(**kwargs: float) -> int: ...
|
||||
def jwt_encode_hs256(payload_data: Any, key: str, headers: Mapping[str, Any] = ...) -> bytes: ... # Passed to json.dumps().
|
||||
def jwt_encode(
|
||||
payload_data: Any, key: str, *, alg: Literal["HS256"] = "HS256", headers: Mapping[str, Any] | None = None
|
||||
) -> str: ... # payload_data and headers are passed to json.dumps().
|
||||
def jwt_decode_hs256(jwt: str) -> Any: ... # Returns json.loads() output.
|
||||
def supports_terminal_sequences(stream: IO[Any]) -> bool: ...
|
||||
def windows_enable_vt_mode() -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user