Format: application/octet-stream
⬇ Download File (966 B)
   1  from _typeshed import AnyPath
   2  from types import CodeType
   3  from typing import Any, List, Sequence, Text, Tuple
   4  
   5  def expr(source: Text) -> STType: ...
   6  def suite(source: Text) -> STType: ...
   7  def sequence2st(sequence: Sequence[Any]) -> STType: ...
   8  def tuple2st(sequence: Sequence[Any]) -> STType: ...
   9  def st2list(st: STType, line_info: bool = ..., col_info: bool = ...) -> List[Any]: ...
  10  def st2tuple(st: STType, line_info: bool = ..., col_info: bool = ...) -> Tuple[Any]: ...
  11  def compilest(st: STType, filename: AnyPath = ...) -> CodeType: ...
  12  def isexpr(st: STType) -> bool: ...
  13  def issuite(st: STType) -> bool: ...
  14  
  15  class ParserError(Exception): ...
  16  
  17  class STType:
  18      def compile(self, filename: AnyPath = ...) -> CodeType: ...
  19      def isexpr(self) -> bool: ...
  20      def issuite(self) -> bool: ...
  21      def tolist(self, line_info: bool = ..., col_info: bool = ...) -> List[Any]: ...
  22      def totuple(self, line_info: bool = ..., col_info: bool = ...) -> Tuple[Any]: ...
  23