[ty] Infer the correct type of Enum __eq__ and __ne__ comparisions by MatthewMckee4 · Pull Request #19666 · astral-sh/ruff (original) (raw)
I thought it was about synthesizing the eq and ne methods from object
It's about looking up these methods on class object. But yes, I see that this makes sense now. This branch implements behavior that originates from object.__eq__/object.__ne__, so we need to make an exception if the lookup-policy tells us to skip attributes on objects. Thank you