Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

to better describe the relationship, it borrows the concept 'subset' from pydantic-resolve, which act like pick several fields from original class but you can still reference to it.

@subset(User) class PickedUser: ....



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: