Skip to content

Extend comparison-with-callable to types #10364

Open
@jacobtylerwalls

Description

@jacobtylerwalls

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 #10161 (comment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Enhancement ✨Improvement to a componentFalse Negative 🦋No message is emitted but something is wrong with the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions