Skip to content

refactor: add type hints to requests.utils #8395

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 10 commits into from
Jul 26, 2022
Merged

refactor: add type hints to requests.utils #8395

merged 10 commits into from
Jul 26, 2022

Conversation

kkirsche
Copy link
Contributor

This adds missing type hints to requests.utils methods as seen in:
https://github.com/psf/requests/blob/main/requests/utils.py

The _Uri type is a TypeAlias that was determined to be str | bytes through the use of urlparse in the function/method implementations

@github-actions

This comment has been minimized.

Kevin Kirsche and others added 2 commits July 25, 2022 15:05
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

1 similar comment
@github-actions
Copy link
Contributor

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

@JelleZijlstra JelleZijlstra merged commit 33878a6 into python:master Jul 26, 2022
@kkirsche kkirsche deleted the requests/utils-quoting branch July 26, 2022 13:36
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.

3 participants