urllib.parse.urlencode: encoding and errors can be None (#9506)

The runtime defaults are None. Found in #9501.
This commit is contained in:
Jelle Zijlstra
2023-01-11 18:55:38 -08:00
committed by GitHub
parent 150dc35d43
commit d2829ecdf7

View File

@@ -158,10 +158,10 @@ _Q = TypeVar("_Q", bound=str | Iterable[int])
def urlencode(
query: Mapping[Any, Any] | Mapping[Any, Sequence[Any]] | Sequence[tuple[Any, Any]] | Sequence[tuple[Any, Sequence[Any]]],
doseq: bool = ...,
doseq: bool = False,
safe: _Q = ...,
encoding: str = ...,
errors: str = ...,
encoding: str | None = None,
errors: str | None = None,
quote_via: Callable[[AnyStr, _Q, str, str], str] = ...,
) -> str: ...
def urljoin(base: AnyStr, url: AnyStr | None, allow_fragments: bool = ...) -> AnyStr: ...