I have a FastApi
item that I am trying to initialize using python tuples,
from pydantic import BaseModel
class Item(BaseModel):
name: str = ""
surname: str = ""
data = ("jhon", "dhon")
Item(*data)
Output the following error
TypeError: __init__() takes 1 positional argument but 3 were given
Is there a way to initialize a BaseModel
from a tuple ?