Package sanskrit

Class Ast.ImportFrom

Enclosing class:
Ast

public static final class Ast.ImportFrom extends Ast.Stmt
from module import name, name as asname. The subset has no relative import (level is always 0) and no import *.
  • Field Details

    • module

      public final String module
    • names

      public final List<Ast.Alias> names
    • level

      public final int level
  • Method Details

    • type

      public String type()
      Description copied from class: Node
      The name of the node in CPython's ast module ("Name", "BinOp"...).
      Specified by:
      type in class Node