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
Try to instantiate TypeVars inside pt when possible (#24231)
This PR improves type inference for functions with unknown parameter
types when the expected type contains type variables within union types.
Previously, the compiler would only attempt to instantiate top-level
`TypeVar`s, but now it recursively searches through union types
(`OrType`) and flexible types to find and instantiate a nested type
variable.
0 commit comments