mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-24 21:47:23 +08:00
[parsimonious] Update to 0.11.* (#15021)
This commit is contained in:
1 parent
5c8b7fcbbe
commit
191fa401ff
3 files changed
+6
-7
No files matched your search
@@ -3,7 +3,9 @@ from parsimonious.grammar import LazyReference
|
||||
from parsimonious.nodes import Node
|
||||
from parsimonious.utils import StrAndRepr
|
||||
|
||||
class ParseError(StrAndRepr, Exception):
|
||||
class ParsimoniousError(Exception): ...
|
||||
|
||||
class ParseError(StrAndRepr, ParsimoniousError):
|
||||
text: str
|
||||
pos: int
|
||||
expr: Expression | None
|
||||
@@ -14,11 +16,11 @@ class ParseError(StrAndRepr, Exception):
|
||||
class LeftRecursionError(ParseError): ...
|
||||
class IncompleteParseError(ParseError): ...
|
||||
|
||||
class VisitationError(Exception):
|
||||
class VisitationError(ParsimoniousError):
|
||||
original_class: type[BaseException]
|
||||
def __init__(self, exc: BaseException, exc_class: type[BaseException], node: Node) -> None: ...
|
||||
|
||||
class BadGrammar(StrAndRepr, Exception): ...
|
||||
class BadGrammar(StrAndRepr, ParsimoniousError): ...
|
||||
|
||||
class UndefinedLabel(BadGrammar):
|
||||
label: LazyReference
|
||||
|
||||
Reference in new issue
Block a user