I am using pyright type checker and need to suppress warnings where e.g. numpy type stubs are insufficient to infer correct types. This can be accomplished with #type: ignore
comment. However, I'd like any other issue to still be highlighted on the same line. For example mypy
offers show_error_codes
option that gives error codes that I can append to type:ignore comment to have only this specific issue suppressed.
I couldn't find such option in the docs https://github.com/microsoft/pyright/blob/main/docs/configuration.md . Is it possible to have specific error codes shown / ignored with pyright?