mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
make http.cookies.{Base,Simple}Cookie instantiable (#2116)
Part of #1476.
This commit is contained in:
committed by
Guido van Rossum
parent
a33a124537
commit
28f6c095d4
@@ -18,7 +18,7 @@ class Morsel(Dict[str, str], Generic[_T]):
|
||||
def js_output(self, attrs: Optional[List[str]] = ...) -> str: ...
|
||||
def OutputString(self, attrs: Optional[List[str]] = ...) -> str: ...
|
||||
|
||||
class BaseCookie(MutableMapping[str, Morsel], Generic[_T]):
|
||||
class BaseCookie(Dict[str, Morsel], Generic[_T]):
|
||||
def __init__(self, input: Optional[_DataType] = ...) -> None: ...
|
||||
def value_decode(self, val: str) -> _T: ...
|
||||
def value_encode(self, val: _T) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user