basedpyright icon indicating copy to clipboard operation
basedpyright copied to clipboard

unused ignore errors only work on `pyright:ignore` comments but not `type:ignore` comments

Open DetachHead opened this issue 2 years ago • 1 comments

partial workaround:

[tool.basedpyright]
enableTypeIgnoreComments = false

prevents type:ignore comments from working alltogether which can prevent actual errors from being incorrectly suppressed using an invalid code

DetachHead avatar Jan 25 '24 03:01 DetachHead

actually i think this behavior is fine as it allows the use case of having multiple type checkers, which isn't a common use case but for example i have a project that's using basedmypy primarily but has a couple rules from basedpyright enabled for things that basedmypy doesn't cover.

it's an edge case tho so i don't think this behavior should be the default

DetachHead avatar Apr 09 '24 04:04 DetachHead