Skip to content

Commit 3a80606

Browse files
committed
Fixed wrong return type in BaseCookie.value_encode in http.cookies
1 parent 5c5f3eb commit 3a80606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/http/cookies.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Morsel(dict[str, Any], Generic[_T]):
4646
class BaseCookie(dict[str, Morsel[_T]], Generic[_T]):
4747
def __init__(self, input: _DataType | None = None) -> None: ...
4848
def value_decode(self, val: str) -> tuple[_T, str]: ...
49-
def value_encode(self, val: _T) -> tuple[_T, str]: ...
49+
def value_encode(self, val: _T) -> tuple[str, str]: ...
5050
def output(self, attrs: list[str] | None = None, header: str = "Set-Cookie:", sep: str = "\r\n") -> str: ...
5151
__str__ = output
5252
def js_output(self, attrs: list[str] | None = None) -> str: ...

0 commit comments

Comments
 (0)