Skip to content

Commit 8a487ff

Browse files
authored
Sync typeshed (#14733)
Syncing typeshed again to make sure python/typeshed#9746 gets into the 1.1 release.
1 parent c99133f commit 8a487ff

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

mypy/typeshed/stdlib/urllib/parse.pyi

+5-9
Original file line numberDiff line numberDiff line change
@@ -192,26 +192,22 @@ def urljoin(base: AnyStr, url: AnyStr | None, allow_fragments: bool = True) -> A
192192
@overload
193193
def 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
197195
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
199197
) -> ParseResultBytes: ...
200198
@overload
201199
def urlsplit(url: str, scheme: str = "", allow_fragments: bool = True) -> SplitResult: ...
202200

203201
if 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

209207
else:
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

Comments
 (0)