Updated stubs

This commit is contained in:
julienmalard 2020-06-26 11:40:18 -04:00
parent 5fe67b9fc4
commit e22536fc9b
1 changed files with 3 additions and 1 deletions

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] = ...,