rename packages

This commit is contained in:
JOLIMAITRE Matthieu 2024-05-20 19:29:49 +02:00
parent 215c2c380f
commit e8a0aa8a64
4 changed files with 3 additions and 5 deletions

View file

@ -1,5 +1,5 @@
from dataclasses import dataclass from dataclasses import dataclass
from typing import Union, Callable, Generic, TypeVar from typing import Union, Generic, TypeVar
P = TypeVar("P") P = TypeVar("P")
@ -17,7 +17,7 @@ class Failure:
P = TypeVar("P") P = TypeVar("P")
Result = Union["Failure", "Success[P]"] Result = Union[Failure, Success[P]]
class ParseError(BaseException): class ParseError(BaseException):
@ -32,8 +32,6 @@ class ParseError(BaseException):
message = f""" message = f"""
Parsing failed at position {self.failure.at_index} of stream : Parsing failed at position {self.failure.at_index} of stream :
${fail_section} ${fail_section}
Expected one of: {failure.expected}
Expected one of:
{failure.expected}
""" """
super().__init__(message) super().__init__(message)