Skip to content

Commit a1cc804

Browse files
committed
no-mistakes(document): Fixed one stale Python install snippet. Version restamp already complete; no other stale facts found.
1 parent 7fcbfeb commit a1cc804

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎docs/ports/python.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,13 @@ When `verify --codegen` finds the committed output was generated with another ru
259259
so rather than telling you to regenerate. (A field carrying an explicit `@column` is
260260
unaffected either way.)
261261

262-
**Both `pydantic` and `fastapi` are consumer-installed, not transitive deps of
262+
**`fastapi` and `pydantic` are consumer-installed, not transitive deps of
263263
`metaobjects` itself** — the entity/router files this emits `import pydantic`
264-
and `import fastapi`, so add them before importing the generated code:
264+
and `import fastapi`, so add them before importing the generated code. The
265+
`pydantic` extra installs the 2.8 minimum (see [Install](#install) above):
265266

266267
```bash
267-
pip install pydantic fastapi
268+
pip install "metaobjects[pydantic]" fastapi
268269
```
269270

270271
The entity-model generator emits one Pydantic **`BaseModel`** per entity (not

0 commit comments

Comments
 (0)