dspy/deprecated-signature-optimizer
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| DSPy | warning | none, edit by hand | All versions |
dspy.SignatureOptimizer is deprecated in DSPy and prints a removal warning on construction.
optimizer = dspy.SignatureOptimizer(metric=exact_match)optimizer = dspy.COPRO(metric=exact_match)What the rule reports
Section titled “What the rule reports”Calls to SignatureOptimizer(...) through a module attribute or direct import in files that import dspy.
How to fix it
Section titled “How to fix it”Replace SignatureOptimizer with dspy.COPRO (or dspy.MIPROv2 / dspy.GEPA for newer prompt optimization workflows).
Diagnostic message
Section titled “Diagnostic message”SignatureOptimizer is deprecated in DSPy and will be removed in a future release. Use dspy.COPRO instead.See all rules in the DSPy pack.