@@ -192,26 +192,22 @@ def urljoin(base: AnyStr, url: AnyStr | None, allow_fragments: bool = True) -> A
192192@overload
193193def urlparse (url : str , scheme : str = "" , allow_fragments : bool = True ) -> ParseResult : ...
194194@overload
195- def urlparse (url : bytes | bytearray , scheme : bytes | bytearray | None , allow_fragments : bool = True ) -> ParseResultBytes : ...
196- @overload
197195def 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
199197) -> ParseResultBytes : ...
200198@overload
201199def urlsplit (url : str , scheme : str = "" , allow_fragments : bool = True ) -> SplitResult : ...
202200
203201if sys .version_info >= (3 , 11 ):
204202 @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 : ...
208206
209207else :
210- @overload
211- def urlsplit (url : bytes | bytearray , scheme : bytes | bytearray | None , allow_fragments : bool = True ) -> SplitResultBytes : ...
212208 @overload
213209 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
215211 ) -> SplitResultBytes : ...
216212
217213@overload
0 commit comments