Skip to content

Commit 6c3b489

Browse files
committed
respect that other error watcher may want to filter comparison-overlap errors (return -> break)
1 parent edf63d7 commit 6c3b489

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ def dangerous_comparison(self, left: Type, right: Type, kind: str, ctx: Context)
16331633
# later if it is persistent over all iteration steps:
16341634
for watcher in self.errors.get_watchers():
16351635
if watcher._filter:
1636-
return
1636+
break
16371637
if isinstance(watcher, IterationErrorWatcher):
16381638
watcher.iteration_dependent_errors.nonoverlapping_types[-1][
16391639
(ctx.line, ctx.column, ctx.end_line, ctx.end_column, kind)

0 commit comments

Comments
 (0)