You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per-module error codes were added in python#13502, let's recommend using them.
The existing type ignore behaviour is pretty unintuitive; I think most
people actually want `# mypy: ignore-errors`. There are probably people
depending on the current behaviour though.
Fixespython#13435, fixespython#12076, fixespython#11999, fixespython#11027, fixespython#9318,
fixespython#7839
Per-module error codes were added in #13502, let's recommend using them.
The existing type ignore behaviour is pretty unintuitive; I think most
people actually want `# mypy: ignore-errors`. There are probably people
depending on the current behaviour though.
Fixes#13435, fixes#12076, fixes#11999, fixes#11027, fixes#9318,
fixes#7839
It's possible to either
# type: ignore
for a whole file or# type: ignore[specific]
on a line. A combination of both would be useful.This script:
yields:
error: Function is missing a type annotation [no-untyped-def]
This script:
yields:
Success: no issues found in 1 source file
... while I think it would make more sense for the
no-untyped-def
error to still be raised, as we're only trying to ignoreassignment
errors.The text was updated successfully, but these errors were encountered: