Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Fix breaking ruff test (#1693)

Herumb Shandilyaf0149c68f15e
diff --git a/dspy/adapters/base.py b/dspy/adapters/base.py
index e9010d6ef..cfa9d7e88 100644
--- a/dspy/adapters/base.py
+++ b/dspy/adapters/base.py
@@ -1,4 +1,3 @@
-from dspy.utils.callback import with_callbacks
class Adapter:
@@ -7,7 +6,6 @@ class Adapter:
def __init_subclass__(cls, **kwargs) -> None:
super().__init_subclass__(**kwargs)
- from dspy.utils.callback import with_callbacks
# Decorate format() and parse() method with with_callbacks
cls.format = with_callbacks(cls.format)