mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-09 06:46:18 +08:00
[parsimonious] Update to 0.11.* (#15021)
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
parsimonious.nodes.RuleDecoratorMeta.__new__
|
||||
|
||||
# Magic:
|
||||
parsimonious.adhoc_expression
|
||||
|
||||
# Tests are shipped with the source, we ignore it:
|
||||
parsimonious.tests
|
||||
parsimonious\.tests\..*
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
version = "0.10.*"
|
||||
version = "0.11.*"
|
||||
upstream_repository = "https://github.com/erikrose/parsimonious"
|
||||
|
||||
@@ -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