以前,在使用pylint时,我在使用vscode编辑时使用了自定义注释设置来忽略未定义的vars,例如:
# Make pylint think that it knows about additional builtins
data = data # pylint:disable=invalid-name,used-before-assignment,undefined-variable
DEBUG = DEBUG # pylint:disable=invalid-name,used-before-assignment,undefined-variable
VERBOSE = VERBOSE # pylint:disable=invalid-name,used-before-assignment,undefined-variable注意,我的应用程序有自己的基于python的裁减脚本语言,因此增加了内置。
我一直没能找到相当于幽门的东西。有人有什么建议吗?
https://stackoverflow.com/questions/64649795
复制相似问题