运行 lint 时出现导入错误 我正在使用 pylint 版本 3.0.2 和 python 版本 3.11
出现以下错误 从 pylint.interfaces 导入 IAstroidChecker、ITokenChecker ImportError:无法从“pylint.interfaces”导入名称“IAstroidChecker”(/venv/lib/python3.11/site-packages/pylint/interfaces.py)
我尝试在 python 3.9 中使用相同的方法,一切正常。
我在 python 3.11 中遇到了同样的问题。 使用旧版本该错误就会消失(<3) of pylint.