Skip to content

Commit e56dbac

Browse files
committed
Improvements
1 parent a6506bd commit e56dbac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parsy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,11 @@ def seq_parser(stream: str, index: int) -> Result[tuple[OUT1, OUT2]]:
351351
# haskelley operators, for fun #
352352

353353
# >>
354-
def __rshift__(self: Parser, other: Parser[OUT2]) -> Parser[OUT2]:
354+
def __rshift__(self, other: Parser[OUT2]) -> Parser[OUT2]:
355355
return self.then(other)
356356

357357
# <<
358-
def __lshift__(self: Parser[OUT1], other: Parser) -> Parser[OUT1]:
358+
def __lshift__(self, other: Parser) -> Parser[OUT]:
359359
return self.skip(other)
360360

361361

0 commit comments

Comments
 (0)