diff --git a/lark-stubs/lexer.pyi b/lark-stubs/lexer.pyi index a43b754..1ae861d 100644 --- a/lark-stubs/lexer.pyi +++ b/lark-stubs/lexer.pyi @@ -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] = ...,