Skip to content

Extend checks for PLR0124  #6276

@chbndrhnns

Description

@chbndrhnns

I had this piece of code where ruff complained about the first assert statement and not about the second. I figure it could also complain about the second for the same reason.

def test_eq__by_memory_location(self):
    class MyClass:
        ...

    instance1 = MyClass()
    instance2 = MyClass()

    assert instance1 is instance1
    assert id(instance1) == id(instance1)

Metadata

Metadata

Assignees

Labels

needs-infoMore information is needed from the issue author

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions