mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
stdlib: fix many attributes which are read-only at runtime but read-write in the stub (#7395)
This commit is contained in:
@@ -21,9 +21,12 @@ def _unquote(str: str) -> str: ...
|
||||
class CookieError(Exception): ...
|
||||
|
||||
class Morsel(dict[str, Any], Generic[_T]):
|
||||
value: str
|
||||
coded_value: _T
|
||||
key: str
|
||||
@property
|
||||
def value(self) -> str: ...
|
||||
@property
|
||||
def coded_value(self) -> _T: ...
|
||||
@property
|
||||
def key(self) -> str: ...
|
||||
def __init__(self) -> None: ...
|
||||
if sys.version_info >= (3, 7):
|
||||
def set(self, key: str, val: str, coded_val: _T) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user