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

Set Mypy follow_imports = silent and fix (some) typing issues found #9700

Merged
merged 4 commits into from
Mar 22, 2021

Conversation

uranusjr
Copy link
Member

Close #9502. Most fixes are just boilerplates (I just configure away the difficult ones), but there are a few legistimate bugs found. The two most significant classes of bugs are found by converting all canonicalize_name recipients to use NormalizedName (@pfmoore I think you’ll be happy about this one), and convert _BaseVersion references to Union[LegacyVersion, Version].

@uranusjr uranusjr added the skip news Does not need a NEWS file entry (eg: trivial changes) label Mar 10, 2021
@uranusjr uranusjr force-pushed the mypy-follow-imports branch 2 times, most recently from 2a77f55 to 4f21ec5 Compare March 10, 2021 05:46
Copy link
Member

@pradyunsg pradyunsg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The mypy configuration changes look great! Haven't looked at the rest of the PR yet, but I'm excited about this!

@uranusjr uranusjr force-pushed the mypy-follow-imports branch from 4f21ec5 to 56a8f3d Compare March 10, 2021 08:41
@uranusjr
Copy link
Member Author

This one and #9699 will conflict (there are some overlaps on type errors they fix). Let’s try to get this in first, I’ll rebase #9699 afterwards.

@uranusjr
Copy link
Member Author

Also cc @obi1kenobi

@uranusjr uranusjr requested a review from pradyunsg March 15, 2021 14:18
setup.cfg Outdated Show resolved Hide resolved
@uranusjr
Copy link
Member Author

uranusjr commented Mar 20, 2021

I plan to get this into master toward the end of this weekend since it is blocking many things I want to do both in pip and resolvelib. Please do feel free to comment if you feel this is a bad idea.

@uranusjr uranusjr merged commit a6b5e90 into pypa:master Mar 22, 2021
@uranusjr uranusjr deleted the mypy-follow-imports branch March 22, 2021 02:34
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
skip news Does not need a NEWS file entry (eg: trivial changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pre-commit mypy run fails to catch and report type errors
3 participants