Skip to content

Commit 3007cf3

Browse files
manual experimentation reveals that this code only works for the command line
although I actually have no idea why that would be the case, as the error for using it in configuration seems inexplicable, since it consults the same list of error codes in the end 🤷
1 parent b1f8dca commit 3007cf3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mypy/options.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,6 @@ def process_error_codes(self, *, error_callback: Callable[[str], Any]) -> None:
451451
error_callback(f"Invalid error code(s): {', '.join(sorted(invalid_codes))}")
452452

453453
self.disabled_error_codes |= {error_codes[code] for code in disabled_codes}
454-
# TODO: does this also apply for configuration files as well, or just the command line?
455454
if "all" in enabled_codes:
456455
self.enabled_error_codes = set(error_codes.values())
457456
else:

0 commit comments

Comments
 (0)