瀏覽代碼

Fixed .pyi file for Token.start_pos

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.12.0
Erez Sh 3 年之前
父節點
當前提交
8c839959ad
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      lark-stubs/lexer.pyi

+ 2
- 2
lark-stubs/lexer.pyi 查看文件

@@ -76,7 +76,7 @@ class TerminalDef:

class Token(str):
type: str
pos_in_stream: int
start_pos: int
value: Any
line: int
column: int
@@ -84,7 +84,7 @@ class Token(str):
end_column: int
end_pos: int

def __init__(self, type_: str, value: Any, pos_in_stream: int = None, line: int = None, column: int = None, end_line: int = None, end_column: int = None, end_pos: int = None) -> None:
def __init__(self, type_: str, value: Any, start_pos: int = None, line: int = None, column: int = None, end_line: int = None, end_column: int = None, end_pos: int = None) -> None:
...

def update(self, type_: Optional[str] = None, value: Optional[Any] = None) -> Token:


Loading…
取消
儲存