Skip to content
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

pkg_resources: Clarify some methods return bytes, not str #4243

Merged
merged 5 commits into from Mar 6, 2024

Conversation

Avasam
Copy link
Contributor

@Avasam Avasam commented Feb 28, 2024

Summary of changes

Clarify some pkg_resources methods return bytes, not str. Also return an empty bytes in EmptyProvider._get

Works towards #2345 and merging pkg_resources stubs from typeshed

Pull Request Checklist

  • Changes have tests (EmptyProvider._get doesn't have tests. type-checking tests are coming in an upcoming PR)
  • News fragment added in newsfragments/.
    (See documentation for details)

newsfragments/4243.bugfix.rst Outdated Show resolved Hide resolved
pkg_resources/__init__.py Outdated Show resolved Hide resolved
pkg_resources/__init__.py Outdated Show resolved Hide resolved
Co-authored-by: Anderson Bravalheri <andersonbravalheri+github@gmail.com>
@abravalheri abravalheri merged commit 0435c72 into pypa:main Mar 6, 2024
21 of 23 checks passed
@abravalheri
Copy link
Contributor

Thank you very much!

@Avasam Avasam deleted the patch-1 branch March 6, 2024 15:02
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.

None yet

2 participants