dspy icon indicating copy to clipboard operation
dspy copied to clipboard

Add type hints to signature.py

Open rpgoldman opened this issue 1 year ago • 1 comments

Address #962

This is substantially complicated by the use of Pydantic.

/cc @thomasahle

rpgoldman avatar May 03 '24 22:05 rpgoldman

I could definitely use help here. I got started just fixing issue #962 , but tried to add more type hints, and have been having issues because mypy does not seem to understand that Signature() is a class-constructor, not an instance-constructor, and also because it is confused by its signature (inherited from BasicModel, I believe).

rpgoldman avatar May 03 '24 22:05 rpgoldman