diff --git a/lark_oapi/api/translation/v1/model/term.py b/lark_oapi/api/translation/v1/model/term.py index 74954527a..e5e201ad0 100644 --- a/lark_oapi/api/translation/v1/model/term.py +++ b/lark_oapi/api/translation/v1/model/term.py @@ -25,7 +25,7 @@ def __init__(self) -> None: self._term = Term() def from_(self, from_: str) -> "TermBuilder": - self._term.from_ = from_ + setattr(self._term, "from", from_) return self def to(self, to: str) -> "TermBuilder":