📅  最后修改于: 2022-03-11 14:59:01.787000             🧑  作者: Mango
class UserList(BaseModel):
__root__: List[User]
UserList.parse_obj([
{'id': '123', 'signup_ts': '2017-06-01 12:22', 'friends': [1, '2', b'3']},
{'id': '456', 'signup_ts': '2017-06-02 12:22', 'friends': ['you']},
])