2

I'm coding in Vim, using Syntastic and Pylint. Sometimes I like to put in method stubs like so:

def foo(bar, baz):
    pass

I know that I am going to use bar and baz and I'd rather Pylint not tell me that I ignored some parameters if I ignored them intentionally with a pass statement. Is there anyway to silence this error specifically in this case only? I still want it to warn me about unused variables on functions I've implemented in full.

Tan Wang
  • 811
  • 1
  • 6
  • 16
  • You can disable (and later re-enable) `unused-argument` with [magic comments](https://pylint.readthedocs.io/en/latest/user_guide/message-control.html). All Pylint, nothing to do with syntastic. – lcd047 Jul 10 '17 at 07:09
  • 1
    IIRC, rather `raise NotImplementedError()` than `pass` and pylint will consider the method as an abstract method, which is not expected to consume its arguments. – sthenault Jul 10 '17 at 12:22

0 Answers0