Skip to content

Support from .. import .. as .. syntax #13490

@kazcw

Description

@kazcw

Add support for unqualified imports with renaming, e.g.:
from project.Error.Error import throw as error_throw

See also: #13476 (comment)

This task includes:

  • Update the parser to accept the syntax
  • Update import analysis in the GUI (if necessary)
  • Add support for the syntax to translation

I haven't verified that IR already allows this combination, which could require some additional work in the compiler (outside the scope of this task).

Metadata

Metadata

Projects

Status

🔧 Implementation

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions