From 66acae8a2d3b20965acb8d2c3fc313f76f86fe89 Mon Sep 17 00:00:00 2001 From: Muspi Merol Date: Tue, 3 Sep 2024 19:03:25 +0800 Subject: [PATCH] chore: fix consistency with real `input` --- src/python/common/patches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/common/patches.py b/src/python/common/patches.py index 17455e2..9b65200 100644 --- a/src/python/common/patches.py +++ b/src/python/common/patches.py @@ -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