Skip to content

Commit 69b0965

Browse files
ArthDubey1011claude
andcommitted
[parsimonious] ParseError.line() can return None
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 97f4eaf commit 69b0965

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎stubs/parsimonious/parsimonious/exceptions.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ParseError(StrAndRepr, ParsimoniousError):
1010
pos: int
1111
expr: Expression | None
1212
def __init__(self, text: str, pos: int = -1, expr: Expression | None = None) -> None: ...
13-
def line(self) -> int: ...
13+
def line(self) -> int | None: ...
1414
def column(self) -> int: ...
1515

1616
class LeftRecursionError(ParseError): ...

0 commit comments

Comments
 (0)