@@ -192,26 +192,22 @@ def urljoin(base: AnyStr, url: AnyStr | None, allow_fragments: bool = True) -> A
192
192
@overload
193
193
def urlparse (url : str , scheme : str = "" , allow_fragments : bool = True ) -> ParseResult : ...
194
194
@overload
195
- def urlparse (url : bytes | bytearray , scheme : bytes | bytearray | None , allow_fragments : bool = True ) -> ParseResultBytes : ...
196
- @overload
197
195
def urlparse (
198
- url : None , scheme : bytes | bytearray | None | Literal ["" ] = "" , allow_fragments : bool = True
196
+ url : bytes | bytearray | None , scheme : bytes | bytearray | None | Literal ["" ] = "" , allow_fragments : bool = True
199
197
) -> ParseResultBytes : ...
200
198
@overload
201
199
def urlsplit (url : str , scheme : str = "" , allow_fragments : bool = True ) -> SplitResult : ...
202
200
203
201
if sys .version_info >= (3 , 11 ):
204
202
@overload
205
- def urlsplit (url : bytes , scheme : bytes | None , allow_fragments : bool = True ) -> SplitResultBytes : ...
206
- @ overload
207
- def urlsplit ( url : None , scheme : bytes | None | Literal [ "" ] = "" , allow_fragments : bool = True ) -> SplitResultBytes : ...
203
+ def urlsplit (
204
+ url : bytes | None , scheme : bytes | None | Literal [ "" ] = "" , allow_fragments : bool = True
205
+ ) -> SplitResultBytes : ...
208
206
209
207
else :
210
- @overload
211
- def urlsplit (url : bytes | bytearray , scheme : bytes | bytearray | None , allow_fragments : bool = True ) -> SplitResultBytes : ...
212
208
@overload
213
209
def urlsplit (
214
- url : None , scheme : bytes | bytearray | None | Literal ["" ] = "" , allow_fragments : bool = True
210
+ url : bytes | bytearray | None , scheme : bytes | bytearray | None | Literal ["" ] = "" , allow_fragments : bool = True
215
211
) -> SplitResultBytes : ...
216
212
217
213
@overload
0 commit comments