Skip to content

Commit

Permalink
Make value_decode and value_encode of BaseCookie return 2-tuple (
Browse files Browse the repository at this point in the history
  • Loading branch information
flaeppe committed Sep 13, 2023
1 parent f0a7993 commit d88398b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/http/cookies.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down

0 comments on commit d88398b

Please sign in to comment.