LoginSignup
15
16

More than 5 years have passed since last update.

Pylint で no-member エラーを出なくする

Last updated at Posted at 2016-07-25

numpy や OpenCV などのモジュールを使っている時、以下のようなメッセージが表示されます。

E: 35,65: Module 'numpy' has no 'deg2rad' member (no-member)
E: 65,28: Module 'cv2' has no 'imread' member (no-member)

これらのモジュールのメンバーをチェックしないようにするオプションがありました。

pylint --extension-pkg-whitelist=numpy,cv2 sample.py

SublimeLinterなら、User Settings の pylintセクションを以下のようにします。

            "pylint": {
                "@disable": false,
                "args": ["--extension-pkg-whitelist=numpy, cv2"],
                "disable": "",
                "enable": "",
                "excludes": [],
                "paths": [],
                "rcfile": "",
                "show-codes": false
            }
15
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
16