@@ -80,9 +80,9 @@ class SplitResultBytes(_SplitResultBytesBase, _NetlocResultMixinBytes): ...
80
80
class ParseResultBytes (_ParseResultBytesBase , _NetlocResultMixinBytes ): ...
81
81
82
82
83
- def parse_qs (qs : AnyStr , keep_blank_values : bool = ..., strict_parsing : bool = ..., encoding : str = ..., errors : str = ...) -> Dict [AnyStr , List [AnyStr ]]: ...
83
+ def parse_qs (qs : Optional [ AnyStr ] , keep_blank_values : bool = ..., strict_parsing : bool = ..., encoding : str = ..., errors : str = ...) -> Dict [AnyStr , List [AnyStr ]]: ...
84
84
85
- def parse_qsl (qs : AnyStr , keep_blank_values : bool = ..., strict_parsing : bool = ..., encoding : str = ..., errors : str = ...) -> List [Tuple [AnyStr , AnyStr ]]: ...
85
+ def parse_qsl (qs : Optional [ AnyStr ] , keep_blank_values : bool = ..., strict_parsing : bool = ..., encoding : str = ..., errors : str = ...) -> List [Tuple [AnyStr , AnyStr ]]: ...
86
86
87
87
88
88
@overload
@@ -106,7 +106,7 @@ def unquote_plus(string: str, encoding: str = ..., errors: str = ...) -> str: ..
106
106
@overload
107
107
def urldefrag (url : str ) -> DefragResult : ...
108
108
@overload
109
- def urldefrag (url : bytes ) -> DefragResultBytes : ...
109
+ def urldefrag (url : Optional [ bytes ] ) -> DefragResultBytes : ...
110
110
111
111
def urlencode (
112
112
query : Union [Mapping [Any , Any ], Mapping [Any , Sequence [Any ]], Sequence [Tuple [Any , Any ]], Sequence [Tuple [Any , Sequence [Any ]]]],
@@ -120,21 +120,23 @@ def urlencode(
120
120
def urljoin (base : AnyStr , url : Optional [AnyStr ], allow_fragments : bool = ...) -> AnyStr : ...
121
121
122
122
@overload
123
- def urlparse (url : str , scheme : str = ..., allow_fragments : bool = ...) -> ParseResult : ...
123
+ def urlparse (url : str , scheme : Optional [ str ] = ..., allow_fragments : bool = ...) -> ParseResult : ...
124
124
@overload
125
- def urlparse (url : bytes , scheme : bytes = ..., allow_fragments : bool = ...) -> ParseResultBytes : ...
125
+ def urlparse (url : Optional [ bytes ] , scheme : Optional [ bytes ] = ..., allow_fragments : bool = ...) -> ParseResultBytes : ...
126
126
127
127
@overload
128
- def urlsplit (url : str , scheme : str = ..., allow_fragments : bool = ...) -> SplitResult : ...
128
+ def urlsplit (url : str , scheme : Optional [ str ] = ..., allow_fragments : bool = ...) -> SplitResult : ...
129
129
@overload
130
- def urlsplit (url : bytes , scheme : bytes = ..., allow_fragments : bool = ...) -> SplitResultBytes : ...
130
+ def urlsplit (url : Optional [ bytes ] , scheme : Optional [ bytes ] = ..., allow_fragments : bool = ...) -> SplitResultBytes : ...
131
131
132
132
@overload
133
- def urlunparse (components : Tuple [AnyStr , AnyStr , AnyStr , AnyStr , AnyStr , AnyStr ]) -> AnyStr : ...
133
+ def urlunparse (
134
+ components : Tuple [Optional [AnyStr ], Optional [AnyStr ], Optional [AnyStr ], Optional [AnyStr ], Optional [AnyStr ], Optional [AnyStr ]]
135
+ ) -> AnyStr : ...
134
136
@overload
135
- def urlunparse (components : Sequence [AnyStr ]) -> AnyStr : ...
137
+ def urlunparse (components : Sequence [Optional [ AnyStr ] ]) -> AnyStr : ...
136
138
137
139
@overload
138
- def urlunsplit (components : Tuple [AnyStr , AnyStr , AnyStr , AnyStr , AnyStr ]) -> AnyStr : ...
140
+ def urlunsplit (components : Tuple [Optional [ AnyStr ], Optional [ AnyStr ], Optional [ AnyStr ], Optional [ AnyStr ], Optional [ AnyStr ] ]) -> AnyStr : ...
139
141
@overload
140
- def urlunsplit (components : Sequence [AnyStr ]) -> AnyStr : ...
142
+ def urlunsplit (components : Sequence [Optional [ AnyStr ] ]) -> AnyStr : ...
0 commit comments