Skip to content

Commit

Permalink
chore: fix consistency with real input
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Sep 3, 2024
1 parent 4dfb662 commit 66acae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/common/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def runcode(self: PyodideConsole, source: str, code):
@cache
def patch_input():
def input(prompt=""):
return window.prompt(prompt) or ""
return window.prompt(str(prompt)) or ""

builtins.input = input

Expand Down

0 comments on commit 66acae8

Please sign in to comment.