【问题标题】:Intellisense for Python APSWPython APSW 智能感知
【发布时间】:2022-10-23 21:18:11
【问题描述】:

系统规格

Windows 10 专业版 x64
Python 3.10.2 x64
APSW 3.37.0
视觉工作室代码 1.63.2

Intellisense 适用于 Python 和除 APSW 之外的所有导入模块。 APSW 确实有效,并且正在执行

dir(apsw)

将产生 apsw 模块中包含的所有常量、函数、属性等,只是没有智能感知。我在 vscode 中的 settings.json 文件具有以下 Python 设置,

{
    /* Python ==== */
    "python.languageServer": "Pylance",
    "python.linting.enabled": true,
    "python.linting.pycodestyleEnabled": false,
    "python.linting.pylintEnabled": false,
    "python.pythonPath": "C:\\Program Files\\Python310\\python.exe",

    ...
}

我已经删除了 apsw 并使用 *.msi 安装程序或带有 pip 的 *.whl 重新安装了无数次。

我需要考虑什么才能让智能感知为 apsw 工作?

谢谢并恭祝安康,
新泽西州

【问题讨论】:

    标签: python visual-studio-code intellisense apsw


    【解决方案1】:

    APSW 现在附带包含文档字符串的类型存根。使用 vscode 时,您将获得完整的智能感知。

    (披露:我是 APSW 的作者)

    【讨论】:

    • 这清除了它。 APSW 是我用过的最好的 SQLite3 包装器。等不及下一个版本了。在此之前,我将继续参考您的文档 wbsite。
    猜你喜欢
    • 2010-10-28
    • 2019-11-11
    • 2011-02-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多