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
It would be great to add quick fixes to use inline ignores. I need rules to apply project-wide but sometimes (not fully typed stubs) I would like to ignore some lines from specific rules and looking for each rule number each time can be time-consuming.
I'm not even sure Pyright supports disabling rules inline but I guess it does as most linters.
I'm using referring to pylance (pyright) linter
Thanks
The text was updated successfully, but these errors were encountered:
Pylance/pyright don't support line-level diagnostic suppression except via the PEP 484 standard of # type: ignore. You can see #196 to discuss/vote on that.
As for adding a quick fix to ignore an error, that is an enhancement, yes.
@judej This was marked as completed in april, but I still don't see quick fixes to add file or line suppression of a specific error. Even though both are now supported. I am on v2022.9.40
Hi,
It would be great to add quick fixes to use inline ignores. I need rules to apply project-wide but sometimes (not fully typed stubs) I would like to ignore some lines from specific rules and looking for each rule number each time can be time-consuming.
I'm not even sure Pyright supports disabling rules inline but I guess it does as most linters.
I'm using referring to pylance (pyright) linter
Thanks
The text was updated successfully, but these errors were encountered: