pylint
pylint copied to clipboard
Extend `comparison-with-callable` to types
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.