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

Class Team

tests/test_future_annotations.py:37–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36def test_model_with_string_annotations(clear_sqlmodel):
37 class Team(SQLModel, table=True):
38 id: Annotated[int | None, Field(primary_key=True)] = None
39 name: str
40
41 class Player(SQLModel, table=True):
42 id: Annotated[int | None, Field(primary_key=True)] = None

Callers 1

Calls 1

FieldFunction · 0.90

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…