pylint icon indicating copy to clipboard operation
pylint copied to clipboard

Extend `comparison-with-callable` to types

Open jacobtylerwalls opened this issue 7 months ago • 0 comments

Refs #7724, for def a_func and def b_func we already lint for a_func == b_func as inferior to a_func is b_func, but we should do this for classes as well, e.g. type(x) == list should be inferior to type(x) is list.

More discussion at https://github.com/pylint-dev/pylint/issues/10161#issuecomment-2573157330.

jacobtylerwalls avatar May 04 '25 10:05 jacobtylerwalls