mirror of https://github.com/lark-parser/lark.git
Updated stubs
This commit is contained in:
parent
5fe67b9fc4
commit
e22536fc9b
|
@ -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…
Reference in New Issue