Skip to content

Commit c87ac00

Browse files
committed
Fixed return types of 'value' and 'key' in Morsel.
1 parent 5c5f3eb commit c87ac00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/http/cookies.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ class CookieError(Exception): ...
2121

2222
class Morsel(dict[str, Any], Generic[_T]):
2323
@property
24-
def value(self) -> str: ...
24+
def value(self) -> str | None: ...
2525
@property
2626
def coded_value(self) -> _T: ...
2727
@property
28-
def key(self) -> str: ...
28+
def key(self) -> str | None: ...
2929
def __init__(self) -> None: ...
3030
def set(self, key: str, val: str, coded_val: _T) -> None: ...
3131
def setdefault(self, key: str, val: str | None = None) -> str: ...

0 commit comments

Comments
 (0)