You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be intuitive for commandline arguments to override config file options, but the way that enable/disable-error-code works isn't.
pyproject.toml
[tool.mypy]
enable_error_code="operator"
> mypy --disable-error-code operator -c "1 + ''"test.py:1: error: Unsupported operand types for + ("int" and "str") [operator]Found 1 error in 1 file (checked 1 source file)
The docs specify how these flags interact with themselves, but don't mention the ones in the config file.
--enable-error-code
This flag allows enabling one or multiple error codes globally. See [Error codes](https://mypy.readthedocs.io/en/stable/error_codes.html#error-codes) for more information.
Note: This flag will override disabled error codes from the [--disable-error-code](https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-disable-error-code) flag.
The text was updated successfully, but these errors were encountered:
I think it would be intuitive for commandline arguments to override config file options, but the way that
enable/disable-error-code
works isn't.pyproject.toml
The docs specify how these flags interact with themselves, but don't mention the ones in the config file.
The text was updated successfully, but these errors were encountered: