We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbf1ed2 commit 0bb21c6Copy full SHA for 0bb21c6
mypy/errors.py
@@ -940,7 +940,10 @@ def targets(self) -> set[str]:
940
# TODO: Make sure that either target is always defined or that not being defined
941
# is okay for fine-grained incremental checking.
942
return {
943
- info.target for errs in self.error_info_map.values() for info in errs if info.target
+ info.target
944
+ for errs in self.error_info_map.values()
945
+ for info in errs
946
+ if info.target and not info.hidden
947
}
948
949
def render_messages(self, errors: list[ErrorInfo]) -> list[ErrorTuple]:
0 commit comments