ImportResolver is incapable of resolving symbols within from ... import symbol_1, symbol_2, ... statements. We should provide another compiler step to resolve these symbols, along with symbols from all import statements like from Module.Type import all (which should collect all the constructors), etc. The step should update BindingMap with the additional information.
There is an abandoned PR that adds this functionality - #6457. Before this PR will be integrated, we should think over the architecture of current BindingMap - it is currently modified in-place from many places, which is potentially dangerous, especially because BindingMap is serializable, and it is cached.
ImportResolver
is incapable of resolving symbols withinfrom ... import symbol_1, symbol_2, ...
statements. We should provide another compiler step to resolve these symbols, along with symbols from all import statements likefrom Module.Type import all
(which should collect all the constructors), etc. The step should updateBindingMap
with the additional information.There is an abandoned PR that adds this functionality - #6457. Before this PR will be integrated, we should think over the architecture of current
BindingMap
- it is currently modified in-place from many places, which is potentially dangerous, especially becauseBindingMap
is serializable, and it is cached.Related: