http.cookies._{quote,unquote} allow None (#4915)

This commit is contained in:
Akuli
2021-01-10 23:11:00 +02:00
committed by GitHub
parent 206da3280e
commit 4c50d7d266

View File

@@ -1,10 +1,15 @@
import sys
from typing import Any, Dict, Generic, List, Mapping, Optional, TypeVar, Union
from typing import Any, Dict, Generic, List, Mapping, Optional, TypeVar, Union, overload
_DataType = Union[str, Mapping[str, Union[str, Morsel[Any]]]]
_T = TypeVar("_T")
@overload
def _quote(str: None) -> None: ...
@overload
def _quote(str: str) -> str: ...
@overload
def _unquote(str: None) -> None: ...
@overload
def _unquote(str: str) -> str: ...
class CookieError(Exception): ...