Explorar el Código

Change typing in lark.pyi: Any -> UnexpectedInput

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.11.2
Fabio Zadrozny hace 3 años
committed by GitHub
padre
commit
661eca61f4
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      lark-stubs/lark.pyi

+ 2
- 1
lark-stubs/lark.pyi Ver fichero

@@ -7,6 +7,7 @@ from typing import (
from .visitors import Transformer
from .lexer import Token, Lexer, TerminalDef
from .tree import Tree
from .exceptions import UnexpectedInput

_T = TypeVar('_T')

@@ -81,7 +82,7 @@ class Lark:
):
...

def parse(self, text: str, start: Optional[str] = None, on_error: Callable[[Any], bool] = None) -> Tree:
def parse(self, text: str, start: Optional[str] = None, on_error: Callable[[UnexpectedInput], bool] = None) -> Tree:
...

@classmethod


Cargando…
Cancelar
Guardar