MCPcopy Index your code
hub / github.com/fastapi/sqlmodel / new_print

Function new_print

tests/conftest.py:57–70  ·  view source on GitHub ↗
(*args: Any)

Source from the content-addressed store, hash-verified

55 calls: list[list[str | dict[str, Any]]],
56) -> Callable[..., Any]:
57 def new_print(*args: Any) -> None:
58 data: list[Any] = []
59 for arg in args:
60 if isinstance(arg, BaseModel):
61 data.append(arg.model_dump())
62 elif isinstance(arg, list):
63 new_list = []
64 for item in arg:
65 if isinstance(item, BaseModel):
66 new_list.append(item.model_dump())
67 data.append(new_list)
68 else:
69 data.append(arg)
70 calls.append(data)
71
72 return new_print
73

Callers

nothing calls this directly

Calls 1

model_dumpMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…