Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tank-34
3 months ago
|
parent
|
context
|
favorite
| on:
Visualize FastAPI endpoints with FastAPI-Voyager
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:
@subset(User) class PickedUser: ....