Open LZDQ opened 1 week ago
doc
-- npm install -g pyright lspconfig.pyright.setup { autostart = true, settings = { python = { analysis = { autoSearchPaths = true, diagnosticMode = 'workspace', useLibraryCodeForTypes = true, typeCheckingMode = 'off', reportMissingImports = true, } } }, }
Use pyrightconfig.json to overwrite. Example config to disable import resolve error. However this is not recommended because package autocompletes will fail.
pyrightconfig.json
{ "reportMissingImports": false }
Or, in pyproject.toml:
pyproject.toml
# Pyright configuration [tool.pyright] reportMissingImports = false
Use virtual environment like conda base.
pyright
doc
Use
pyrightconfig.json
to overwrite. Example config to disable import resolve error. However this is not recommended because package autocompletes will fail.Or, in
pyproject.toml
:mac cannot resolve imports
Use virtual environment like conda base.