MCPcopy
hub / github.com/msgspec/msgspec / _get_class_name

Function _get_class_name

src/msgspec/_json_schema.py:162–167  ·  view source on GitHub ↗
(cls: Any)

Source from the content-addressed store, hash-verified

160
161
162def _get_class_name(cls: Any) -> str:
163 if hasattr(cls, "__origin__"):
164 name = cls.__origin__.__name__
165 args = ", ".join(_type_repr(a) for a in cls.__args__)
166 return f"{name}[{args}]"
167 return cls.__name__
168
169
170def _get_doc(t: mi.Type) -> str:

Callers 2

_build_name_mapFunction · 0.85
to_schemaMethod · 0.85

Calls 1

_type_reprFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…