Turn ImportFrom.names
into a list of NamedTuple
#1339
Labels
Enhancement ✨
Improvement to a component
ImportFrom.names
into a list of NamedTuple
#1339
Current behavior
Each entry is a
tuple
of the name being imported, and the alias that the name is assigned to (if any).Expected behavior
Have something that acts like an
ast.alias
object.So that could be acheived by using
NamedTuple
, this would keep the compatibility with the normal tuple usage and would allow to be used like it was anast.alias
object, such that less effort is needed to adopt astroid.Astroid version: 2.9.3
The text was updated successfully, but these errors were encountered: