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

gencache fix: compare against keys rather than values in ForgetAboutTypelibInterface #2329

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

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented Jul 26, 2024

Spotted by pyright's reportUnnecessaryComparison

If versionRedirectMap's keys are tuples, and values are Modules, this comparison made no sense and "drop any version redirects to it" was never done. If I'm correct, this probably fixes some gencache / typelib issue, but I have no idea which (there's a handful open), or will cause issues if this behaviour not working was fine for 21 years.

Writing a unit test for the intended behaviour might be warranted. @mhammond please advise.

@Avasam Avasam marked this pull request as ready for review October 13, 2024 18:29
@Avasam Avasam changed the title gencache fix: compare against keys rather than values in ForgetAboutTypelibInterface gencache fix: compare against keys rather than values in ForgetAboutTypelibInterface Oct 13, 2024
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