MCPcopy
hub / github.com/pydantic/pydantic / print

Function print

pydantic-core/wasm-preview/worker.js:4–14  ·  view source on GitHub ↗
(tty)

Source from the content-addressed store, hash-verified

2let last_post = 0;
3
4function print(tty) {
5 if (tty.output && tty.output.length > 0) {
6 chunks.push(tty.output);
7 tty.output = [];
8 const now = performance.now();
9 if (now - last_post > 100) {
10 post();
11 last_post = now;
12 }
13 }
14}
15
16function post() {
17 self.postMessage(chunks);

Callers 15

commit_and_push_changesFunction · 0.85
open_pull_requestFunction · 0.85
create_github_releaseFunction · 0.85
push.pyFile · 0.85
update_versionFunction · 0.85
update_historyFunction · 0.85
prepare.pyFile · 0.85
validate1Method · 0.85
test_construct_misuseFunction · 0.85
test_decimal_validationFunction · 0.85

Calls 3

postFunction · 0.85
nowMethod · 0.80
pushMethod · 0.45

Tested by 15

validate1Method · 0.68
test_construct_misuseFunction · 0.68
test_decimal_validationFunction · 0.68
do_somethingMethod · 0.68
do_something_elseMethod · 0.68
test_mypy_resultsFunction · 0.68
test_bad_toml_configFunction · 0.68