Skip to content

Commit

Permalink
Update core.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustKarlstedt committed Mar 19, 2024
1 parent 97c6072 commit b098df9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyparsing/core.py
Expand Up @@ -695,7 +695,7 @@ def is_valid_date(instring, loc, toks):

return self

def add_parse_action(self, *fns: ParseAction, **kwargs) -> "ParserElement":
def add_parse_action(self, *fns: ParseAction, **kwargs: Any) -> "ParserElement":
"""
Add one or more parse actions to expression's list of parse actions. See :class:`set_parse_action`.
Expand All @@ -707,7 +707,7 @@ def add_parse_action(self, *fns: ParseAction, **kwargs) -> "ParserElement":
)
return self

def add_condition(self, *fns: ParseCondition, **kwargs) -> "ParserElement":
def add_condition(self, *fns: ParseCondition, **kwargs: Any) -> "ParserElement":
"""Add a boolean predicate function to expression's list of parse actions. See
:class:`set_parse_action` for function call signatures. Unlike ``set_parse_action``,
functions passed to ``add_condition`` need to return boolean success/fail of the condition.
Expand Down

0 comments on commit b098df9

Please sign in to comment.