The example code in Using lists instead of sets section of Response Model page seems to be the same as previous section response_model_include and response_model_exclude.
It doesn't demostrate the section's description about convert list to set.
Irrelevant
The point is very clear actually.
If you forget to use a set and use a list or tuple instead, FastAPI will still convert it to a set and it will work correctly
So in the Using lists instead of sets section, @tiangolo uses Lists instead of sets to demonstrate it does not make any difference. But in the first example, we have a set.
@ycd Oh, I totally missed that! Thanks!