mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
refactor(typing): drop the dead self guard in Predibase init and use a plain list factory
This commit is contained in:
parent
9c068117e7
commit
a90328aa8c
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue