Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ confirm
Function
confirm
crates/wasm/Lib/browser.py:59–62 ·
view source on GitHub ↗
(msg)
Source
from the content-addressed store, hash-verified
57
58
59
def
confirm(msg):
60
if
type(msg) != str:
61
raise
TypeError(
"msg must be a string"
)
62
return
_confirm.call(jsstr(msg)).as_bool()
63
64
65
_prompt = window.get_prop(
"prompt"
)
Callers
nothing calls this directly
Calls
2
as_bool
Method · 0.80
call
Method · 0.45
Tested by
no test coverage detected