If you don't mind the extra effort and want better safety, I recommend enabling the ruff rule PGH003.
It enforces that all type: ignore comments must specify a clear scope, rather than ignoring all type checks.
For more details on the drawbacks, please refer to the explanation in the ruff documentation above.
Originally posted by @gbaian10 in #1466 (comment)
If you don't mind the extra effort and want better safety, I recommend enabling the
ruffrule PGH003.It enforces that all
type: ignorecomments must specify a clear scope, rather than ignoring all type checks.For more details on the drawbacks, please refer to the explanation in the
ruffdocumentation above.Originally posted by @gbaian10 in #1466 (comment)