简体   繁体   English

VS代码:告诉pylint忽略下一行?

[英]VS Code: Tell pylint to ignore the next line?

Looking for a way to tell pylint to ignore the error on the next line. 寻找一种告诉pylint忽略下一行错误的方法。 The method for JavaScript is given here , just JavaScript的方法在这里给出,只是

// @ts-ignore

I tried some logical variants of that for Python, but didn't succeed. 我为Python尝试了一些逻辑上的变体,但没有成功。

You can use # pylint: disable=fixme, line-too-long . 您可以使用# pylint: disable=fixme, line-too-long See this StackOverflow answer. 请参阅 StackOverflow答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM