rename packages
This commit is contained in:
parent
215c2c380f
commit
e8a0aa8a64
4 changed files with 3 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
from dataclasses import dataclass
|
||||
from typing import Union, Callable, Generic, TypeVar
|
||||
from typing import Union, Generic, TypeVar
|
||||
|
||||
|
||||
P = TypeVar("P")
|
||||
|
@ -17,7 +17,7 @@ class Failure:
|
|||
|
||||
|
||||
P = TypeVar("P")
|
||||
Result = Union["Failure", "Success[P]"]
|
||||
Result = Union[Failure, Success[P]]
|
||||
|
||||
|
||||
class ParseError(BaseException):
|
||||
|
@ -32,8 +32,6 @@ class ParseError(BaseException):
|
|||
message = f"""
|
||||
Parsing failed at position {self.failure.at_index} of stream :
|
||||
${fail_section}
|
||||
|
||||
Expected one of:
|
||||
{failure.expected}
|
||||
Expected one of: {failure.expected}
|
||||
"""
|
||||
super().__init__(message)
|
Loading…
Add table
Add a link
Reference in a new issue