MCPcopy Index your code
hub / github.com/fastapi/sqlmodel / Hero

Class Hero

tests/test_future_annotations.py:9–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8def test_model_with_future_annotations(clear_sqlmodel):
9 class Hero(SQLModel, table=True):
10 id: Annotated[int | None, Field(primary_key=True)] = None
11 name: str
12 secret_name: str
13 age: int | None = None
14
15 hero = Hero(name="Deadpond", secret_name="Dive Wilson", age=25)
16

Callers 1

Calls 1

FieldFunction · 0.90

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…