async def put(id: int, classe: ClassBaseIn): await Class.filter(id=id).update(**classe.dict(exclude_unset=True)) return await ClassBaseOut.from_queryset_single(Class.get(id=id))
async def get(id: int): return await ClassBaseOut.from_queryset_single(Class.get(id=id))