You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make overloaded constructors consistent in error messages (#20483)
This allows to re-enable 7 tests that were skipped in parallel mode.
Note that I changed my opinion on what the representation of overloaded
constructors should actually be. Now I think that the representation
that previously was only used in warm runs is better. Two reasons for
this:
* Having a non-`None` return type for `__init__` would be weird (and
manually tweaking it would introduce some fragile special-casing)
* I found a (very) old test case `testSerializeOverloaded__init__` from
which it looks like using the class name is very much intentional.
Also note that currently logic for determining function name, and for
determining first argument (i.e. `self`/`cls`) are currently entangled.
I refactor this to make these two pieces independent.
0 commit comments