From 3a80606d4e8f8a98757ce2bfccf6c2ce61647c33 Mon Sep 17 00:00:00 2001 From: b9788 Date: Mon, 12 Jan 2026 22:50:13 +0300 Subject: [PATCH] Fixed wrong return type in BaseCookie.value_encode in http.cookies --- stdlib/http/cookies.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/http/cookies.pyi b/stdlib/http/cookies.pyi index 4df12e3125d4..4c8e82597bf8 100644 --- a/stdlib/http/cookies.pyi +++ b/stdlib/http/cookies.pyi @@ -46,7 +46,7 @@ class Morsel(dict[str, Any], Generic[_T]): class BaseCookie(dict[str, Morsel[_T]], Generic[_T]): def __init__(self, input: _DataType | None = None) -> None: ... def value_decode(self, val: str) -> tuple[_T, str]: ... - def value_encode(self, val: _T) -> tuple[_T, str]: ... + def value_encode(self, val: _T) -> tuple[str, str]: ... def output(self, attrs: list[str] | None = None, header: str = "Set-Cookie:", sep: str = "\r\n") -> str: ... __str__ = output def js_output(self, attrs: list[str] | None = None) -> str: ...