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

Use set instead of True-only dict #4366

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Avasam
Copy link
Contributor

@Avasam Avasam commented May 17, 2024

Summary of changes

Use set instead of True-only dict

Note this is likely a breaking changes for some downstream users of

  • pkg_resources.ResourceManager.cached_files
  • setuptools.package_index.PackageIndex.package_pages's values
  • setuptools.package_index.PackageIndex.scanned_urls
  • setuptools.package_index.PackageIndex.fetched_urls

if they access of modify its content.

Pull Request Checklist

  • Changes have tests (existing tests should pass + static type-checking)
  • News fragment added in newsfragments/.
    (See documentation for details)

pkg_resources/__init__.py Outdated Show resolved Hide resolved
setuptools/package_index.py Show resolved Hide resolved
setuptools/tests/test_easy_install.py Outdated Show resolved Hide resolved
@abravalheri
Copy link
Contributor

abravalheri commented May 22, 2024

Thank you very much for the continuous contributions, @Avasam

Note this is likely a breaking changes for some downstream

Can we live without this one? Maybe if it is a breaking change we can step back?
Will it bring any other improvement?

@Avasam
Copy link
Contributor Author

Avasam commented May 22, 2024

Maybe if it is a breaking change we can step back?

Since v70 just got published, I'll make a version of this PR that doesn't touch public names (let me know if any of the 4 public names listed above were not meant as public api anyway). So this can be considered for v71 instead.
Edit: #4381

Will it bring any other improvement?

I don't think so, it's just a datatype improvement.

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

3 participants