File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ from collections.abc import Iterable, Mapping
22from types import GenericAlias
33from typing import Any , Generic , TypeVar , overload
44from typing_extensions import TypeAlias
5+ from _typeshed import MaybeNone
56
67__all__ = ["CookieError" , "BaseCookie" , "SimpleCookie" ]
78
@@ -21,11 +22,11 @@ class CookieError(Exception): ...
2122
2223class Morsel (dict [str , Any ], Generic [_T ]):
2324 @property
24- def value (self ) -> str | None : ...
25+ def value (self ) -> MaybeNone [ str ] : ...
2526 @property
26- def coded_value (self ) -> _T | None : ...
27+ def coded_value (self ) -> MaybeNone [ _T ] : ...
2728 @property
28- def key (self ) -> str | None : ...
29+ def key (self ) -> MaybeNone [ str ] : ...
2930 def __init__ (self ) -> None : ...
3031 def set (self , key : str , val : str , coded_val : _T ) -> None : ...
3132 def setdefault (self , key : str , val : str | None = None ) -> str : ...
You can’t perform that action at this time.
0 commit comments