fix: dictionary changed size during iteration error (#8327) (#8341)

Co-authored-by: Joey Feldberg <joeyfeldberg@users.noreply.github.com>
Co-authored-by: Joey Feldberg <12495578+joeyfeldberg@users.noreply.github.com>
This commit is contained in:
Krish Dholakia 2025-02-07 16:20:28 -08:00 committed by GitHub
parent 024237077b
commit ec9f3d6a63
40 changed files with 40 additions and 40 deletions

View file

@ -16,7 +16,7 @@ class DatabricksEmbeddingConfig:
)
def __init__(self, instruction: Optional[str] = None) -> None:
locals_ = locals()
locals_ = locals().copy()
for key, value in locals_.items():
if key != "self" and value is not None:
setattr(self.__class__, key, value)