DSPy: The framework for programming—not prompting—language models
Python
fix settings.py
Omar Khattab56456e081091
diff --git a/dsp/utils/settings.py b/dsp/utils/settings.pyindex 8edceddbb..ffea8259e 100644--- a/dsp/utils/settings.py+++ b/dsp/utils/settings.py@@ -49,7 +49,7 @@ class Settings:def __new__(cls):if cls._instance is None:cls._instance = super().__new__(cls)- # No need for a lock since we're only updating main_thread_config in the main thread+ cls._instance.lock = threading.Lock() # maintained here for DSPy assertions.pyreturn cls._instancedef __getattr__(self, name):