相关疑难解决方法(0)

使用Pylint显示错误和警告

所以我开始使用Pylint,但由于我使用制表符而不是空格,它给我作为警告,因为一些方法来自基类,也是'GalleryUi'的实例没有'setModel'成员,而它有QAbstractTableModel作为基类,我如何设置Pylint不考虑这些事情......

No config file found, using default configuration
************* Module python.gallery
W:  7, 0: Found indentation with tabs instead of spaces (mixed-indentation)
W:  8, 0: Found indentation with tabs instead of spaces (mixed-indentation)
C: 13, 0: Trailing whitespace (trailing-whitespace)
C: 15, 0: Trailing whitespace (trailing-whitespace)
W: 15, 0: Found indentation with tabs instead of spaces (mixed-indentation)
W: 16, 0: Found indentation with tabs instead of spaces (mixed-indentation)
W: 17, 0: Found indentation with tabs instead of spaces (mixed-indentation)
W: 18, …
Run Code Online (Sandbox Code Playgroud)

python pylint

7
推荐指数
1
解决办法
1万
查看次数

标签 统计

pylint ×1

python ×1