How to disable pylint 'Undefined variable' error for a specific variable in a file?

前端 未结 6 1497
慢半拍i
慢半拍i 2020-12-15 08:10

I am hosting IronPython inside a C# application and injecting an API for the host into the global scope.

I have just started to love syntastic for vim w

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-15 08:32

    You can add your variables to the 'additional-builtins' option so pylint will consider them as defined.

    This has to be done in a rc file, it can't be done inlined in the code.

提交回复
热议问题