From ce8f183870630fb0d53caeb0d67b176735c630f6 Mon Sep 17 00:00:00 2001 From: xiao <30921318+titxue@users.noreply.github.com> Date: Fri, 26 Jul 2024 19:01:59 +0800 Subject: [PATCH] Update term.py Fix parameter errors --- lark_oapi/api/translation/v1/model/term.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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":