MCPcopy
hub / github.com/pydantic/pydantic / Body

Class Body

tests/test_fields.py:270–271  ·  view source on GitHub ↗

A reproduction of the FastAPI's `Body` param.

Source from the content-addressed store, hash-verified

268
269def test_fastapi_compatibility_hack() -> None:
270 class Body(FieldInfo):
271 """A reproduction of the FastAPI's `Body` param."""
272
273 field = Body()
274 # Assigning after doesn't update `_attributes_set`, which is currently

Callers 1

Calls

no outgoing calls

Tested by 1