Skip to content

Commit 50327f0

Browse files
dwetterauJukkaL
authored andcommitted
Add types for parse_qs and parse_qsl when taking bytes as input (#1020)
1 parent cb7949b commit 50327f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stdlib/3/urllib/parse.pyi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ class SplitResultBytes(_SplitResultBytesBase, _NetlocResultMixinBytes): ...
9797
class ParseResultBytes(_ParseResultBytesBase, _NetlocResultMixinBytes): ...
9898

9999

100-
def parse_qs(qs: str, keep_blank_values: bool = ..., strict_parsing: bool = ..., encoding: str = ..., errors: str = ...) -> Dict[str, List[str]]: ...
100+
def parse_qs(qs: AnyStr, keep_blank_values: bool = ..., strict_parsing: bool = ..., encoding: str = ..., errors: str = ...) -> Dict[AnyStr, List[AnyStr]]: ...
101+
102+
def parse_qsl(qs: AnyStr, keep_blank_values: bool = ..., strict_parsing: bool = ..., encoding: str = ..., errors: str = ...) -> List[Tuple[AnyStr, AnyStr]]: ...
101103

102-
def parse_qsl(qs: str, keep_blank_values: bool = ..., strict_parsing: bool = ..., encoding: str = ..., errors: str = ...) -> List[Tuple[str, str]]: ...
103104

104105
@overload
105106
def quote(string: str, safe: AnyStr = ..., encoding: str = ..., errors: str = ...) -> str: ...

0 commit comments

Comments
 (0)