How do I disable pylint unused import error messages in vs code

后端 未结 5 1707
南方客
南方客 2020-12-14 08:21

How do I disable these error messages from popping up in the problems box in vs code

5条回答
  •  暖寄归人
    2020-12-14 08:34

    Adding below to lines at the top of the file will remove the error...And make sure is the lines duplicated inside the program if yes remove it.

     # pylint: disable=unused-wildcard-import, method-hidden
     # pylint: enable=too-many-lines
    

    Reference: https://pylint.readthedocs.io/en/latest/faq.html#is-it-possible-to-locally-disable-a-particular-message

提交回复
热议问题