Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions weaviate/backup/backup_location.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Dict, Union, cast
from typing import Any, Dict, Union

from pydantic import BaseModel

Expand All @@ -7,7 +7,7 @@ class _BackupLocationConfig(BaseModel):
"""The dynamic location of a backup."""

def _to_dict(self) -> Dict[str, Any]:
ret = cast(dict, self.model_dump(exclude_none=True))
ret = {k: v for k, v in self.__dict__.items() if v is not None}

return ret

Expand Down