Модель
Код: Выделить всё
class MyRequest(BaseModel):
foo: str
abc: int
from: int
Код: Выделить всё
File "test.py", line 6
from: int
SyntaxError: invalid syntax
Подробнее здесь: https://stackoverflow.com/questions/606 ... field-name
Код: Выделить всё
class MyRequest(BaseModel):
foo: str
abc: int
from: int
Код: Выделить всё
File "test.py", line 6
from: int
SyntaxError: invalid syntax