munch-ease-backend/persons/db.py
2024-01-13 18:44:48 +11:00

12 lines
No EOL
234 B
Python

from pydantic import BaseModel
from typing import List, ClassVar
class Person(BaseModel):
id: int
name: str
async def create(conn):
return None
def get(conn, id: int) -> Person:
return Person(id=id, name='test')