[mypyc] Use `method_sig` to get the method signature (#21567)
Fixes #21566
`create_ne_from_eq()` checks whether the class has an `__eq__` method
using `cls.has_method("__eq__")`, but `gen_glue_ne_method()` then
requires `cls.get_method("__eq__")` to return a concrete `FuncIR`.
In this package-cycle case, the inherited method declaration exists, but
the concrete `FuncIR` body is not available yet. This makes
`cls.has_method("__eq__")` true while `cls.get_method("__eq__")` returns
None. R
Ryan Heard committed
70b74e1b6225b2beca374e4ae2b03825454b1e6f
Parent: 8f2d0f1
Committed by GitHub <noreply@github.com>
on 6/1/2026, 10:49:21 AM