ruff
5e9259c9 - Don't special-case class instances in binary expression inference (#15161)

Commit
270 days ago
Don't special-case class instances in binary expression inference (#15161) Just like in #15045 for unary expressions: In binary expressions, we were only looking for dunder expressions for `Type::Instance` types. We had some special cases for coercing the various `Literal` types into their corresponding `Instance` types before doing the lookup. But we can side-step all of that by using the existing `Type::to_meta_type` and `Type::to_instance` methods.
Author
Parents
Loading