为什么在nvim中使用mason进行pyright配置显示包未被访问

问题描述 投票:0回答:1

pyright 运行不佳:

The pyright did not run well

虽然正确完成,但找不到包位置: Completion status

这是我的pyright配置

--config python language server

lspconfig["pyright"].setup({
  capabilities = capabilities,
  on_attach = on_attach,
  settings={
      python = {
      pythonPath="/usr/bin/python3"
      },
      pyright = {}
  }
})

我希望有人可以帮助我解决无法访问的问题,我在google上没有找到好的解决方案。

autocomplete neovim language-server-protocol pyright
1个回答
0
投票

"Module" is not accessed
警告意味着您正在导入该模块,但尚未使用其中的任何功能。当您开始使用该模块时,警告将会消失。此警告对于检查未使用的导入并将其删除非常有用。

before using the time module
after using sleep from the time module

© www.soinside.com 2019 - 2024. All rights reserved.