I am seeing the following message from pylint:
foo.py:311: [C0123(unidiomatic-typecheck), _legend] Using type() instead of isinstance() for a typecheck.
My line is:
if type(g) not in unique:
That is, I am maintaing a list of unique types in a set of objects.
This isn't a typecheck. Shouldn't the warning only be produced when
type(x) is compared with type(y)?
I recently published a flake8 plugin on GitHub:
In my experience, finding flake8 plugins is easier said than done and the best are found on the 'PyCQA' org on GitHub/GitLab. Would this project be something that the organization would be interested in moving under their umbrella? I'm thinking of making use of it in some OpenStack projects, but who knows...
First of all, excuse me if this is not the right place to ask this
I have this very simple example that when run through pylint gives me
the following error:
sahumada@sahumada-ThinkPad-T510:~$ cat d.py
sahumada@sahumada-ThinkPad-T510:~$ python d.py
sahumada@sahumada-ThinkPad-T510:~$ pylint -r n d.py
************* Module d
E: 3, 6: Module 'ssl' has no 'PROTOCOL_SSLv23' member (no-member)
sahumada@sahumada-ThinkPad-T510:~$ python --version
sahumada@sahumada-ThinkPad-T510:~$ pylint --version
Python 2.7.12 (default, Jul 1 2016, 15:12:24)
[GCC 5.4.0 20160609]
sahumada@sahumada-ThinkPad-T510:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS