MCPcopy
hub / github.com/pydantic/pydantic / _pydantic_model_class_maker_callback

Method _pydantic_model_class_maker_callback

pydantic/mypy.py:168–170  ·  view source on GitHub ↗
(self, ctx: ClassDefContext)

Source from the content-addressed store, hash-verified

166 return self._plugin_data
167
168 def _pydantic_model_class_maker_callback(self, ctx: ClassDefContext) -> None:
169 transformer = PydanticModelTransformer(ctx.cls, ctx.reason, ctx.api, self.plugin_config)
170 transformer.transform()
171
172 def _pydantic_model_metaclass_marker_callback(self, ctx: ClassDefContext) -> None:
173 """Reset dataclass_transform_spec attribute of ModelMetaclass.

Callers

nothing calls this directly

Calls 2

transformMethod · 0.95

Tested by

no test coverage detected