mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Set urllib.parse.urljoin url argument to optional (#2513)
This commit is contained in:
committed by
Sebastian Rittau
parent
4859742087
commit
a6b4f687e0
@@ -1,5 +1,5 @@
|
||||
# Stubs for urllib.parse
|
||||
from typing import Any, List, Dict, Tuple, AnyStr, Generic, overload, Sequence, Mapping, Union, NamedTuple, Callable
|
||||
from typing import Any, List, Dict, Tuple, AnyStr, Generic, overload, Sequence, Mapping, Union, NamedTuple, Callable, Optional
|
||||
import sys
|
||||
|
||||
_Str = Union[bytes, str]
|
||||
@@ -123,7 +123,7 @@ else:
|
||||
Sequence[Tuple[Any, Sequence[Any]]]],
|
||||
doseq: bool = ..., safe: AnyStr = ..., encoding: str = ..., errors: str = ...) -> str: ...
|
||||
|
||||
def urljoin(base: AnyStr, url: AnyStr, allow_fragments: bool = ...) -> AnyStr: ...
|
||||
def urljoin(base: AnyStr, url: Optional[AnyStr], allow_fragments: bool = ...) -> AnyStr: ...
|
||||
|
||||
@overload
|
||||
def urlparse(url: str, scheme: str = ..., allow_fragments: bool = ...) -> ParseResult: ...
|
||||
|
||||
Reference in New Issue
Block a user