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
Some fallback types can't be calculated during the main semantic analysis pass, since they require joins. We can either calculate the fallbacks in a later pass before type checking, or we can calculate them on demand during type checking. I'm leaning towards the latter option.
The text was updated successfully, but these errors were encountered:
This changes tuple fallbacks to be calculated on demand during
type checking. This fixes some issues with fallbacks being imprecise.
In the new semantic analyzer, this introduces a new pass just after
the main semantic analysis pass to calculate precise item types for
`tuple` base classes. These can't be calculated on demand since
the base class is a variable-length tuple type (`Instance`) instead
of `TupleType`. We can't calculate these during the main semantic
analysis pass since base classes can be incomplete.
Fixes#6400.
Some fallback types can't be calculated during the main semantic analysis pass, since they require joins. We can either calculate the fallbacks in a later pass before type checking, or we can calculate them on demand during type checking. I'm leaning towards the latter option.
The text was updated successfully, but these errors were encountered: