MCPcopy Create free account
hub / github.com/ipython/traitlets / repr_type

Function repr_type

traitlets/utils/descriptions.py:176–182  ·  view source on GitHub ↗

Return a string representation of a value and its type for readable error messages.

(obj: Any)

Source from the content-addressed store, hash-verified

174
175
176def repr_type(obj: Any) -> str:
177 """Return a string representation of a value and its type for readable
178
179 error messages.
180 """
181 the_type = type(obj)
182 return f"{obj!r} {the_type!r}"

Callers 4

__init__Method · 0.85
validate_elementsMethod · 0.85
__init__Method · 0.85
element_errorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…