more avoiding mutable default constructor values

This commit is contained in:
Aleix Conchillo Flaqué
2025-05-25 21:00:35 -07:00
parent d1f2a5d04f
commit 7a767e680c
4 changed files with 8 additions and 8 deletions

View File

@@ -110,7 +110,7 @@ class RTVIActionArgument(BaseModel):
class RTVIAction(BaseModel):
service: str
action: str
arguments: List[RTVIActionArgument] = []
arguments: List[RTVIActionArgument] = Field(default_factory=list)
result: Literal["bool", "number", "string", "array", "object"]
handler: Callable[["RTVIProcessor", str, Dict[str, Any]], Awaitable[ActionResult]] = Field(
exclude=True