FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Correct the interface for SimplePath by jaraco · Pull Request #480 · python/importlib_metadata · GitHub

Correct the interface for SimplePath - #480

Merged
jaraco merged 5 commits into
mainfrom
bugfix/distribution-simplepath
Dec 16, 2023
Merged

Correct the interface for SimplePath#480
jaraco merged 5 commits into
mainfrom
bugfix/distribution-simplepath

Conversation

jaraco commented Dec 16, 2023
edited
Loading

Copy link
Copy Markdown
Member

While reviewing the interface for Distribution, I realized that locate_file was incorrectly reporting a return of pathlib.Path when it in fact could be a zipfile.Path or other SimplePath. This change expands the definition of SimplePath and then applies it to Distribution.locate_file and PackagePath.

  • Corrected the interface for SimplePath to encompass the expectations of locate_file and PackagePath.

jaraco mentioned this pull request Dec 16, 2023
jaraco merged commit 200cf45 into main Dec 16, 2023
jaraco deleted the bugfix/distribution-simplepath branch December 16, 2023 17:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL