Skip to content

Commit 42f7953

Browse files
authored
[http.cookies] Fix wrong return type in BaseCookie.value_encode (#15267)
1 parent 15f6b0a commit 42f7953

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
@@ -47,7 +47,7 @@ class Morsel(dict[str, Any], Generic[_T]):
4747
class BaseCookie(dict[str, Morsel[_T]], Generic[_T]):
4848
def __init__(self, input: _DataType | None = None) -> None: ...
4949
def value_decode(self, val: str) -> tuple[_T, str]: ...
50-
def value_encode(self, val: _T) -> tuple[_T, str]: ...
50+
def value_encode(self, val: _T) -> tuple[str, str]: ...
5151
def output(self, attrs: list[str] | None = None, header: str = "Set-Cookie:", sep: str = "\r\n") -> str: ...
5252
__str__ = output
5353
def js_output(self, attrs: list[str] | None = None) -> str: ...

0 commit comments

Comments
 (0)