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

More cases showing errors disappearing from dmypy reruns #15049

Closed
wants to merge 1 commit into from

Conversation

meshy
Copy link
Contributor

@meshy meshy commented Apr 13, 2023

This adds test for two cases where errors disappear from the second run of dmypy.

The first shows a way that "unused type ignore" errors can disappear. The case is a little complicated, but I haven't yet worked out how to make it smaller.

The second case shows how "module X has not attribute Y" errors can disappear.

I think this shows another instance of #9655, but my instinct is that the fix for this will differ from the fix for #15043.

I have added this as a proof of the issue, and plan to evolve this PR as I investigate the cause.

This shows two cases where errors disappear from the second run of
dmypy.

The first shows a way that "unused type ignore" errors can disappear.
The case is a little complicated, but I can't yet work out how to make
it smaller.

The second case shows how "module X has not attribute Y" errors
can disappear.
@meshy
Copy link
Contributor Author

meshy commented Jan 2, 2024

Closing this because I have merged these tests into #15043 and fixed them.

@meshy meshy closed this Jan 2, 2024
@meshy meshy deleted the disappearing-unused-type-ignore-2 branch January 2, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-daemon dmypy topic-type-ignore # type: ignore comments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants