3 ms·
If you run a linter, the cases where you are doing this outside of __init__ will usually be pointed out. You can silence the warning/error on a case by case bas
by gtaylor 8y ago
If you run a linter, the cases where you are doing this outside of __init__ will usually be pointed out. You can silence the warning/error on a case by case basis if you really need to do it.
- craigds 8y agoWhich linter does that? flake8 doesn't AFAIK.
- a_bored_husky 8y agoPylint does: http://pylint-messages.wikidot.com/messages:w0201 http://pylint-messages.wikidot.com/messages:w0201
- kstrauser 8y agopylint does.