Skip to content

Commit 4173100

Browse files
authored
fix return type annotation for ensure_signature from Type[Signature] -> Signature (#8487) (#8496)
1 parent 8816da1 commit 4173100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dspy/signatures/signature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def load_state(cls, state):
355355
return signature_copy
356356

357357

358-
def ensure_signature(signature: str | Type[Signature], instructions=None) -> Signature:
358+
def ensure_signature(signature: str | Type[Signature], instructions=None) -> Type[Signature]:
359359
if signature is None:
360360
return None
361361
if isinstance(signature, str):

0 commit comments

Comments
 (0)