From d88398b9230eaa13f336cdafafd9b6664464cf51 Mon Sep 17 00:00:00 2001 From: Petter Friberg Date: Wed, 13 Sep 2023 09:21:25 +0200 Subject: [PATCH] Make `value_decode` and `value_encode` of `BaseCookie` return 2-tuple (#10702) --- stdlib/http/cookies.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/http/cookies.pyi b/stdlib/http/cookies.pyi index e24ef9cbd..d92dbbdb5 100644 --- a/stdlib/http/cookies.pyi +++ b/stdlib/http/cookies.pyi @@ -49,8 +49,8 @@ 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) -> _T: ... - def value_encode(self, val: _T) -> str: ... + def value_decode(self, val: str) -> tuple[_T, str]: ... + def value_encode(self, val: _T) -> tuple[_T, 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: ...