8000 improve urlencode(...) annotation for quote_via (#6345) · python/typeshed@60f2d2f · GitHub
[go: up one dir, main page]

Skip to content

Commit 60f2d2f

Browse files
authored
improve urlencode(...) annotation for quote_via (#6345)
1 parent c51438e commit 60f2d2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/urllib/parse.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ def urldefrag(url: bytes | None) -> DefragResultBytes: ...
116116
def urlencode(
117117
query: Mapping[Any, Any] | Mapping[Any, Sequence[Any]] | Sequence[tuple[Any, Any]] | Sequence[tuple[Any, Sequence[Any]]],
118118
doseq: bool = ...,
119-
safe: AnyStr = ...,
119+
safe: _Str = ...,
120120
encoding: str = ...,
121121
errors: str = ...,
122-
quote_via: Callable[[str, AnyStr, str, str], str] = ...,
122+
quote_via: Callable[[AnyStr, _Str, str, str], str] = ...,
123123
) -> str: ...
124124
def urljoin(base: AnyStr, url: AnyStr | None, allow_fragments: bool = ...) -> AnyStr: ...
125125
@overload

0 commit comments

Comments
 (0)
0