I write a script for myself on python, I use the dataclass library, I have a ready-made DTO written in Java, which I try to repeat on the python, there is a field called "from", what can I call this field in python, because I can't call him the same way?
I use python 3.7 and dataclass_json
@dataclass_json
@dataclass
class Direction:
from: Optional[str]
to: Optional[str]
from: Optional[str]
^
SyntaxError: invalid syntax