Skip to content

Don't read errors from cache on silent import (#20508) - #20509

Merged
ilevkivskyi merged 1 commit into
python:masterfrom
sjoerdjob:gh-20508-follow-imports-silent
Jan 1, 2026
Merged

Don't read errors from cache on silent import (#20508)#20509
ilevkivskyi merged 1 commit into
python:masterfrom
sjoerdjob:gh-20508-follow-imports-silent

Conversation

@sjoerdjob

Copy link
Copy Markdown
Contributor

When using --follow-imports=silent, we do not care about the errors in imported files, only about errors in the files we're explicitly reading.

Fixes #20508.

When using `--follow-imports=silent`, we do not care about the errors in
imported files, only about errors in the files we're explicitly reading.
@github-actions

github-actions Bot commented Jan 1, 2026

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@ilevkivskyi ilevkivskyi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LG, thanks!

@ilevkivskyi
ilevkivskyi merged commit 525e54a into python:master Jan 1, 2026
23 checks passed
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.

--follow-imports=silent is not silent if imported file is in cache.

2 participants