Overwriting the level of default diagnostic information can be common, but unfortunately it has no effect in neovim.
The setting item of diagnosticSeverityOverrides has no effect at all.
What is the reason? How to solve it? This is really important
{
root_dir = function()
return vim.fn.getcwd()
end,
settings = {
python = {
analysis = {
typeCheckingMode = "basic",
diagnosticSeverityOverrides = {
strictListInference = "warning",
strictDictionaryInference = "warning",
strictSetInference = "warning",
reportDuplicateImport = "warning"
}
}
}
}
}