Set urllib.parse.urljoin url argument to optional (#2513)

This commit is contained in:
Fionn Fitzmaurice authored and Sebastian Rittau committed 2018-10-11 19:50:52 +02:00
1 parent 4859742087
commit a6b4f687e0
1 file changed
+2 -2
+2 -2
View File
@@ -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: ...