evhub / coconut

Simple, elegant, Pythonic functional programming.
http://coconut-lang.org
Apache License 2.0
4.04k stars 120 forks source link

Some f-strings don't parse correctly #839

Closed evhub closed 3 months ago

evhub commented 3 months ago

~E.g.~

import foo

bar = f"{foo}"
evhub commented 3 months ago

Nevermind, looks like the actual error here is with invalid f-string parsing in some instances. Here's the test case:

f"""
cd "{ROOT_DIR}"
git pull
py -3 -m pip install -Ue .
py -3 -m minecraft_server_tools.install_client{install_client_args}
{OPEN_CMD}"{LAUNCHER_FILE}"
    """.strip()