mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-19 18:31:14 +08:00
http.cookies._{quote,unquote} allow None (#4915)
This commit is contained in:
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user