mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
http: make __str__ match runtime def (#7348)
Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -38,6 +38,7 @@ class Morsel(dict[str, Any], Generic[_T]):
|
||||
def update(self, values: Iterable[tuple[str, str]]) -> None: ...
|
||||
def isReservedKey(self, K: str) -> bool: ...
|
||||
def output(self, attrs: list[str] | None = ..., header: str = ...) -> str: ...
|
||||
__str__ = output
|
||||
def js_output(self, attrs: list[str] | None = ...) -> str: ...
|
||||
def OutputString(self, attrs: list[str] | None = ...) -> str: ...
|
||||
def __eq__(self, morsel: object) -> bool: ...
|
||||
@@ -50,6 +51,7 @@ class BaseCookie(dict[str, Morsel[_T]], Generic[_T]):
|
||||
def value_decode(self, val: str) -> _T: ...
|
||||
def value_encode(self, val: _T) -> str: ...
|
||||
def output(self, attrs: list[str] | None = ..., header: str = ..., sep: str = ...) -> str: ...
|
||||
__str__ = output
|
||||
def js_output(self, attrs: list[str] | None = ...) -> str: ...
|
||||
def load(self, rawdata: _DataType) -> None: ...
|
||||
def __setitem__(self, key: str, value: str | Morsel[_T]) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user