Python Interpreter Failing to Parse fstring with newline character in expression. #59
Open
2 tasks done
Labels
c-bug
Category: Something isn't working
Prerequisites
Category
Bug in Agentverse
Expected Behavior
When running the following line of code:
rsp = f"{msg.username} has contributed {len(repos)} external repositories:\n{"\n".join(repos)}"
it should work as it does in Python.
Observed Behavior
The web IDE on the Agentverse website logs an info-level warning "unexpected character after line continuation character".
The warning went away by breaking down the one-liner into two parts, allowing me to deploy the function.
The text was updated successfully, but these errors were encountered: