MCPcopy 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
59def 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_boolMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected