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)?

Thanks, Ben
_______________________________________________
code-quality mailing list
code-quality@python.org
https://mail.python.org/mailman/listinfo/code-quality

Reply via email to