Skip to content

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

Merged
abravalheri merged 5 commits into
pypa:mainfrom
Avasam:patch-1
Mar 6, 2024
Merged

pkg_resources: Clarify some methods return bytes, not str#4243
abravalheri merged 5 commits into
pypa:mainfrom
Avasam:patch-1

Conversation

@Avasam

@Avasam Avasam commented Feb 28, 2024

Copy link
Copy Markdown
Contributor

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)

Comment thread newsfragments/4243.bugfix.rst Outdated
Comment thread pkg_resources/__init__.py Outdated
Comment thread pkg_resources/__init__.py Outdated
Co-authored-by: Anderson Bravalheri <andersonbravalheri+github@gmail.com>
@abravalheri abravalheri merged commit 0435c72 into pypa:main Mar 6, 2024
@abravalheri

Copy link
Copy Markdown
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.

2 participants