Browse Source

Updated stubs

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.9.0
julienmalard 4 years ago
parent
commit
e22536fc9b
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      lark-stubs/lexer.pyi

+ 3
- 1
lark-stubs/lexer.pyi View File

@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from types import ModuleType
from typing import (
TypeVar, Type, Tuple, List, Dict, Iterator, Collection, Callable, Optional,
Pattern as REPattern,
@@ -111,6 +111,7 @@ class TraditionalLexer(Lexer):
def __init__(
self,
terminals: Collection[TerminalDef],
re_: ModuleType,
ignore: Collection[str] = ...,
user_callbacks: Dict[str, _Callback] = ...,
g_regex_flags: int = ...
@@ -135,6 +136,7 @@ class ContextualLexer(Lexer):
self,
terminals: Collection[TerminalDef],
states: Dict[str, Collection[str]],
re_: ModuleType,
ignore: Collection[str] = ...,
always_accept: Collection[str] = ...,
user_callbacks: Dict[str, _Callback] = ...,


Loading…
Cancel
Save