Skip to content

Commit

Permalink
fix: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
leoslf committed Jun 6, 2024
1 parent 9e53f01 commit 48dfe68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/parsec/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ class Parser(T.Generic[_U]):
def ends_with(self, other: Parser[_V]) -> Parser[_U]: ...
def excepts(self, ohter: Parser[_V]) -> Parser[_U]: ...
@T.overload
def parsecmap(self, fn: CA.Callable[..., _V], star: Literal[True]) -> Parser[_V]: ...
def parsecmap(self, fn: CA.Callable[..., _V], star: T.Literal[True]) -> Parser[_V]: ...
@T.overload
def parsecmap(self, fn: CA.Callable[[_U], _V], star: Literal[False]) -> Parser[_V]: ...
def parsecmap(self, fn: CA.Callable[[_U], _V], star: T.Literal[False]) -> Parser[_V]: ...
@T.overload
def parsecmap(self, fn, star: bool = False) -> Parser[_V]: ...
@T.overload
def map(self, fn: CA.Callable[..., _V], star: Literal[True]) -> Parser[_V]: ...
def map(self, fn: CA.Callable[..., _V], star: T.Literal[True]) -> Parser[_V]: ...
@T.overload
def map(self, fn: CA.Callable[[_U], _V], star: Literal[False]) -> Parser[_V]: ...
def map(self, fn: CA.Callable[[_U], _V], star: T.Literal[False]) -> Parser[_V]: ...
@T.overload
def map(self, fn: CA.Callable[[_U], _V], star: bool = False) -> Parser[_V]: ...
def parsecapp(
Expand Down

0 comments on commit 48dfe68

Please sign in to comment.