Restrict the number of errors shown when there are missing stubs by JukkaL · Pull Request #10579 · python/mypy

added 2 commits

June 4, 2021 14:01
When upgrading to mypy 0.900, most projects will see some errors. Projects
with strict settings could see thousands of errors, since missing stubs
will generate many additional `Any` types. After 200 errors we will only
show errors about unresolved imports or missing stubs so that the likely
root causes won't be hidden in a high volume of errors.

ilevkivskyi

@JukkaL

@JukkaL

ilevkivskyi

@JukkaL JukkaL deleted the limit-stub-errors branch

June 4, 2021 16:07

JukkaL added a commit that referenced this pull request

Jun 7, 2021
)

When upgrading to mypy 0.900, most projects will see some errors about
missing stubs. Projects with strict settings could see thousands of errors,
since missing stubs will generate many additional Any types.

After 200 errors (only if some of them are about imports) we will now 
only show errors about unresolved imports or missing stubs, so that the 
likely root causes won't be obscured in a high volume of errors.

Fixes #10529.