Skip to content

Commit 7b1cc24

Browse files
correct my accidental omittion of a negation
1 parent 6810987 commit 7b1cc24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypy/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ def add_error_info(self, info: ErrorInfo) -> None:
630630
self.only_once_messages.add(info.message)
631631
if (
632632
self.seen_import_error
633-
and ErrorCode.is_code_or_sub_code_of(info.code, IMPORT)
633+
and not ErrorCode.is_code_or_sub_code_of(info.code, IMPORT)
634634
and self.has_many_errors()
635635
):
636636
# Missing stubs can easily cause thousands of errors about

0 commit comments

Comments
 (0)