Skip to content

Commit 5d72e39

Browse files
authored
Update main.py
1 parent 53a65f2 commit 5d72e39

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

mypy/main.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,16 +1458,6 @@ def set_strict_flags() -> None:
14581458

14591459
options.process_incomplete_features(error_callback=parser.error, warning_callback=print)
14601460

1461-
def _bad_error_code_flags(msg: str) -> None:
1462-
raise CompileError([msg])
1463-
1464-
# Processing error codes after plugins have loaded since plugins may
1465-
# register custom error codes that we don't know about until plugins
1466-
# have loaded.
1467-
options._on_plugins_loaded = lambda: options.process_error_codes(
1468-
error_callback=_bad_error_code_flags
1469-
)
1470-
14711461
# Compute absolute path for custom typeshed (if present).
14721462
if options.custom_typeshed_dir is not None:
14731463
options.abs_custom_typeshed_dir = os.path.abspath(options.custom_typeshed_dir)

0 commit comments

Comments
 (0)