mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
urllib.parse.urlencode: encoding and errors can be None (#9506)
The runtime defaults are None. Found in #9501.
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user