Skip to content

Commit

Permalink
Sync typeshed (#14733)
Browse files Browse the repository at this point in the history
Syncing typeshed again to make sure
python/typeshed#9746 gets into the 1.1 release.
  • Loading branch information
koogoro authored Feb 18, 2023
1 parent c99133f commit 8a487ff
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions mypy/typeshed/stdlib/urllib/parse.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -192,26 +192,22 @@ def urljoin(base: AnyStr, url: AnyStr | None, allow_fragments: bool = True) -> A
@overload
def urlparse(url: str, scheme: str = "", allow_fragments: bool = True) -> ParseResult: ...
@overload
def urlparse(url: bytes | bytearray, scheme: bytes | bytearray | None, allow_fragments: bool = True) -> ParseResultBytes: ...
@overload
def urlparse(
url: None, scheme: bytes | bytearray | None | Literal[""] = "", allow_fragments: bool = True
url: bytes | bytearray | None, scheme: bytes | bytearray | None | Literal[""] = "", allow_fragments: bool = True
) -> ParseResultBytes: ...
@overload
def urlsplit(url: str, scheme: str = "", allow_fragments: bool = True) -> SplitResult: ...

if sys.version_info >= (3, 11):
@overload
def urlsplit(url: bytes, scheme: bytes | None, allow_fragments: bool = True) -> SplitResultBytes: ...
@overload
def urlsplit(url: None, scheme: bytes | None | Literal[""] = "", allow_fragments: bool = True) -> SplitResultBytes: ...
def urlsplit(
url: bytes | None, scheme: bytes | None | Literal[""] = "", allow_fragments: bool = True
) -> SplitResultBytes: ...

else:
@overload
def urlsplit(url: bytes | bytearray, scheme: bytes | bytearray | None, allow_fragments: bool = True) -> SplitResultBytes: ...
@overload
def urlsplit(
url: None, scheme: bytes | bytearray | None | Literal[""] = "", allow_fragments: bool = True
url: bytes | bytearray | None, scheme: bytes | bytearray | None | Literal[""] = "", allow_fragments: bool = True
) -> SplitResultBytes: ...

@overload
Expand Down

0 comments on commit 8a487ff

Please sign in to comment.