stubtest does not correctly handle disable_error_code
option when --mypy-config-file
is supplied
#17628
Labels
disable_error_code
option when --mypy-config-file
is supplied
#17628
When
--mypy-config-file
is passed tostubtest
is usesparse_config_file
function. Which does not handledisable_error_code
setting correctly. Since it is done in another place (mypy/main.py
):mypy/mypy/main.py
Lines 1339 to 1353 in a0dbbd5
There are similar cases of options that are post-processed there, but not in
parse_config_file
, but let's fix them one by one to reduce potential regressions.I propose adding
process_error_codes
method toOptions
object so it can be used in bothmain.py
andstubtest.py
(and others likestubgen
in the future).Found while working on python/typeshed#12463
The text was updated successfully, but these errors were encountered: