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
Hmm, I'm not sure if we'll support this mypy-specific feature, since pytype has its own way of silencing errors (https://google.github.io/pytype/user_guide.html#silencing-errors), but at a minimum we can change the # type: ignore regex to accept an error code after the ignore.
Currently a comment like
# type: ignore[assignment]
generates the error:I would expect pytype to consider such a comment as a plain
# type: ignore
.ref: https://mypy.readthedocs.io/en/latest/error_codes.html#silencing-errors-based-on-error-codes
The text was updated successfully, but these errors were encountered: