Skip to content

Commit 191fa40

Browse files
authored
[parsimonious] Update to 0.11.* (#15021)
1 parent 5c8b7fc commit 191fa40

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
parsimonious.nodes.RuleDecoratorMeta.__new__
22

3-
# Magic:
4-
parsimonious.adhoc_expression
5-
63
# Tests are shipped with the source, we ignore it:
74
parsimonious.tests
85
parsimonious\.tests\..*

stubs/parsimonious/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "0.10.*"
1+
version = "0.11.*"
22
upstream_repository = "https://github.com/erikrose/parsimonious"

stubs/parsimonious/parsimonious/exceptions.pyi

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ from parsimonious.grammar import LazyReference
33
from parsimonious.nodes import Node
44
from parsimonious.utils import StrAndRepr
55

6-
class ParseError(StrAndRepr, Exception):
6+
class ParsimoniousError(Exception): ...
7+
8+
class ParseError(StrAndRepr, ParsimoniousError):
79
text: str
810
pos: int
911
expr: Expression | None
@@ -14,11 +16,11 @@ class ParseError(StrAndRepr, Exception):
1416
class LeftRecursionError(ParseError): ...
1517
class IncompleteParseError(ParseError): ...
1618

17-
class VisitationError(Exception):
19+
class VisitationError(ParsimoniousError):
1820
original_class: type[BaseException]
1921
def __init__(self, exc: BaseException, exc_class: type[BaseException], node: Node) -> None: ...
2022

21-
class BadGrammar(StrAndRepr, Exception): ...
23+
class BadGrammar(StrAndRepr, ParsimoniousError): ...
2224

2325
class UndefinedLabel(BadGrammar):
2426
label: LazyReference

0 commit comments

Comments
 (0)