Skip to content

Commit d2829ec

Browse files
urllib.parse.urlencode: encoding and errors can be None (#9506)
The runtime defaults are None. Found in #9501.
1 parent 150dc35 commit d2829ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/urllib/parse.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ _Q = TypeVar("_Q", bound=str | Iterable[int])
158158

159159
def urlencode(
160160
query: Mapping[Any, Any] | Mapping[Any, Sequence[Any]] | Sequence[tuple[Any, Any]] | Sequence[tuple[Any, Sequence[Any]]],
161-
doseq: bool = ...,
161+
doseq: bool = False,
162162
safe: _Q = ...,
163-
encoding: str = ...,
164-
errors: str = ...,
163+
encoding: str | None = None,
164+
errors: str | None = None,
165165
quote_via: Callable[[AnyStr, _Q, str, str], str] = ...,
166166
) -> str: ...
167167
def urljoin(base: AnyStr, url: AnyStr | None, allow_fragments: bool = ...) -> AnyStr: ...

0 commit comments

Comments
 (0)