Skip to content

Simplify and fix urllib.parse.urlencode() #13815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 14, 2025
Merged

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Apr 11, 2025

Remove overloads and type vars. Introduce a protocol for the
quote_via argument. This means that the interface accepted by the
supplied quote_via is stricter, and is not dependent on the actual
supplied types in the query argument, but must work with all
possible query types.

Closes: #4234

srittau and others added 2 commits April 11, 2025 13:08
Remove overloads and type vars. Introduce a protocol for the
`quote_via` argument. This means that the interface accepted by the
supplied `quote_via` is stricter, and is not dependent on the actual
supplied types in the `query` argument, but must work with all
possible query types.

Closes: python#4234

This comment has been minimized.

@srittau srittau marked this pull request as ready for review April 11, 2025 11:34

This comment has been minimized.

This comment has been minimized.

@Avasam
Copy link
Collaborator

Avasam commented Apr 14, 2025

After Akuli's comment is resolved #13815 (comment) this LGTM

Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit de317e1 into python:main Apr 14, 2025
55 checks passed
@srittau srittau deleted the urlencode branch April 14, 2025 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with urlencode typeshed annotation starting in mypy 0.780
3 participants