diff --git a/stdlib/3/urllib/parse.pyi b/stdlib/3/urllib/parse.pyi index 3a1026111..3e5433f25 100644 --- a/stdlib/3/urllib/parse.pyi +++ b/stdlib/3/urllib/parse.pyi @@ -88,11 +88,17 @@ def parse_qs(qs: str, keep_blank_values : bool = ..., strict_parsing : bool = .. def parse_qsl(qs: str, keep_blank_values: bool = ..., strict_parsing: bool = ..., encoding: str = ..., errors: str = ...) -> List[Tuple[str,str]]: ... -def quote(string: AnyStr, safe: AnyStr = ..., encoding: str = ..., errors: str = ...) -> str: ... +@overload +def quote(string: str, safe: AnyStr = ..., encoding: str = ..., errors: str = ...) -> str: ... +@overload +def quote(string: bytes, safe: AnyStr = ...) -> str: ... -def quote_from_bytes(bs: bytes, safe: AnyStr = ...) -> bytes: ... +def quote_from_bytes(bs: bytes, safe: AnyStr = ...) -> str: ... -def quote_plus(string: AnyStr, safe: AnyStr = ..., encoding: str = ..., errors: str = ...) -> str: ... +@overload +def quote_plus(string: str, safe: AnyStr = ..., encoding: str = ..., errors: str = ...) -> str: ... +@overload +def quote_plus(string: bytes, safe: AnyStr = ...) -> str: ... def unquote(string: str, encoding: str = ..., errors: str = ...) -> str: ...