You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
None: use the existing results object, potentially modified by the action
ParseResults: replaces the existing results object
Anything else: replaces the existing results object, wrapped in a ParseResults
In the "anything else" category, many types work as described. Notice in each case that there is a single element in the tokens list, which is identical to results["letters"]:
The explanation of parse action handlers in #309 gives three cases for the return type:
In the "anything else" category, many types work as described. Notice in each case that there is a single element in the tokens list, which is identical to results["letters"]:
If the action returns a tuple, the token list is correct, but the names dict is wrong:
If the action returns a list, both the tokens list and names dict are wrong:
You can even get some very unexpected behavior from other types:
The text was updated successfully, but these errors were encountered: