MCPcopy Index your code
hub / github.com/msgspec/msgspec / Metadata

Class Metadata

src/msgspec/inspect.py:95–111  ·  view source on GitHub ↗

A type wrapping a subtype with additional metadata. Parameters ---------- type: Type The subtype. extra_json_schema: dict, optional A dict of extra fields to set for the subtype when generating a json-schema. extra: dict, optional A dict of extra

Source from the content-addressed store, hash-verified

93
94
95class Metadata(Type):
96 """A type wrapping a subtype with additional metadata.
97
98 Parameters
99 ----------
100 type: Type
101 The subtype.
102 extra_json_schema: dict, optional
103 A dict of extra fields to set for the subtype when generating a
104 json-schema.
105 extra: dict, optional
106 A dict of extra user-defined metadata attached to the subtype.
107 """
108
109 type: Type
110 extra_json_schema: Union[dict, None] = None
111 extra: Union[dict, None] = None
112
113
114class AnyType(Type):

Callers 1

translateMethod · 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…