Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harrison/multiline commands #2280

Merged
merged 2 commits into from
Apr 1, 2023
Merged

Harrison/multiline commands #2280

merged 2 commits into from
Apr 1, 2023

Conversation

hwchase17
Copy link
Contributor

No description provided.

mpaepper and others added 2 commits April 1, 2023 12:41
ChatGPT outputs multiline commands like this:

"""
```
def multiply():
    print(5*6)
multiply()
```
"""

which is a string that contains three times ` around the code.

This leads to the output SyntaxError because of the ```.

When these ``` are removed, the output is properly calculated and
returned
@hwchase17 hwchase17 merged commit acfda4d into master Apr 1, 2023
9 checks passed
@hwchase17 hwchase17 deleted the harrison/multiline-commands branch April 1, 2023 19:54
@mpaepper
Copy link
Contributor

mpaepper commented Apr 1, 2023

Thanks for the quick clean up and merge @hwchase17 馃殌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants