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
The root cause seems to be the signature of BaseWrapper.create_wrapper; it shouldn't use two type variables M and T. It would be better to generate an error about the signature instead of the call site. However, there may be something deeper going on.
The text was updated successfully, but these errors were encountered:
Fixes#8020
There is a bunch of code/logic duplication around `bind_self()`, mostly because of #7724. This PR makes all three main code paths consistently follow the same structure:
1. `freshen_function_type_vars()`
2. `bind_self()`
3. `expand_type_by_instance(..., map_instance_to_supertype())` (a.k.a `map_type_from_supertype()`)
I briefly scrolled through other code paths, and it looks like this was last major/obvious inconsistency (although code around `__getattr__`/`__setattr__`/`__get__`/`__set__` looks a bit suspicious).
The last line generates a strange error message:
The root cause seems to be the signature of
BaseWrapper.create_wrapper
; it shouldn't use two type variablesM
andT
. It would be better to generate an error about the signature instead of the call site. However, there may be something deeper going on.The text was updated successfully, but these errors were encountered: