Revert "gh-137969: Fix evaluation of ref.evaluate(format=Format.FORWARDREF) objects (#138075)" (#140930)

This reverts commit 63e01d6bae.
This commit is contained in:
Jelle Zijlstra 2025-11-02 21:35:15 -08:00 committed by GitHub
parent 121c219e30
commit 349de57839
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 19 deletions

View file

@ -1911,15 +1911,6 @@ def test_fwdref_invalid_syntax(self):
with self.assertRaises(SyntaxError):
fr.evaluate()
def test_re_evaluate_generics(self):
global alias
class C:
x: alias[int]
evaluated = get_annotations(C, format=Format.FORWARDREF)["x"].evaluate(format=Format.FORWARDREF)
alias = list
self.assertEqual(evaluated.evaluate(), list[int])
class TestAnnotationLib(unittest.TestCase):
def test__all__(self):