Skip to content

Replication of original PR #596: Update PEP 649/749 implementation #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: replicated-pr-596-before
Choose a base branch
from

Conversation

yashwanthatla
Copy link
Owner

@yashwanthatla yashwanthatla commented Jun 21, 2025

PR Summary

Update Forward Reference Evaluation for Python 3.14+ Compatibility

Overview

This PR updates the forward reference evaluation mechanism to ensure compatibility with Python 3.14+ by replacing runtime detection of PEP 649/749 implementation with version-based checks.

Change Types

Type Description
Enhancement Update forward reference handling for Python 3.14+ compatibility
Refactor Replace feature detection with version-based checks

Affected Modules

Module / File Change Description
typing_extensions.py Changed default parameter value in evaluate_forward_ref function from Format.VALUE to None
typing_extensions.py Replaced runtime detection of PEP 649/749 with version-based import approach
test_typing_extensions.py Updated tests to use explicit version checks instead of feature detection

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.

2 participants