Skip to content

Commit 20701ac

Browse files
committed
Update yt-dlp
1 parent 0fd067d commit 20701ac

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

stubs/yt-dlp/yt_dlp/cookies.pyi

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
from collections.abc import Collection, Iterator, KeysView
1+
from _typeshed import SupportsItems
2+
from collections.abc import Iterator, KeysView
23
from enum import Enum
34
from http.cookiejar import Cookie, CookiePolicy, MozillaCookieJar
4-
from http.cookies import SimpleCookie
5-
from typing import Final, TextIO, TypeVar
5+
from http.cookies import Morsel, SimpleCookie
6+
from typing import Any, Final, TextIO, TypeVar
67

78
from . import _LoggerProtocol
89
from .minicurses import MultilinePrinter
@@ -101,4 +102,4 @@ class DataParser:
101102
def pbkdf2_sha1(password: bytes, salt: bytes, iterations: int, key_length: int) -> bytes: ...
102103

103104
class LenientSimpleCookie(SimpleCookie):
104-
def load(self, data: str | Collection[str]) -> None: ...
105+
def load(self, data: str | SupportsItems[str, str | Morsel[Any]]) -> None: ...

0 commit comments

Comments
 (0)