basedpyright
basedpyright copied to clipboard
unused ignore errors only work on `pyright:ignore` comments but not `type:ignore` 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
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