refactor(typing): drop the dead self guard in Predibase init and use a plain list factory

This commit is contained in:
mateo-berri 2026-09-04 19:42:37 -07:00
parent 9c068117e7
commit a90328aa8c
2 changed files with 2 additions and 2 deletions

View file

@ -83,7 +83,7 @@ class PredibaseConfig(BaseConfig):
("watermark", watermark),
)
for key, value in locals_:
if key != "self" and value is not None:
if value is not None:
setattr(self.__class__, key, value)
@classmethod

View file

@ -93,7 +93,7 @@ class Turn:
user_content: str | None = None
assistant_content: str | None = None
tool_calls: list[dict[str, Any]] = field(default_factory=list)
tool_results: Sequence[Mapping[str, object]] = field(default_factory=list[Mapping[str, object]])
tool_results: Sequence[Mapping[str, object]] = field(default_factory=list)
response_status: int | None = None