Skip to content

Conversation

@kapilreddy
Copy link
Contributor

@kapilreddy kapilreddy commented Nov 4, 2025

Fixes #9016

@kapilreddy kapilreddy changed the title FIX - Add 3.14 annotation support for signature construction #9016 FIX - Add 3.14 annotation support for signature construction Nov 4, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for Python 3.14's PEP 649 deferred annotation evaluation by introducing logic to handle the new annotationlib module. The change ensures that DSPy's signature handling can properly extract type annotations in Python 3.14+ while maintaining backward compatibility with earlier Python versions.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TomeHirata
Copy link
Collaborator

Thanks @kapilreddy! I filed #9041 for the full 3.14 support and included your commit.

@TomeHirata TomeHirata closed this Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] DSPy tool calling breaks on Python version 3.14

2 participants