Skip to content

reportUnnecessaryComparison does not take non-overlapping type parameters into account #7624

Description

@DetachHead
def asdf(a: list[int], b: list[str]):
    if a == b: # no error
        ...

playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    as designedNot a bug, working as intendedbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions