mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Revert "gh-137969: Fix evaluation of ref.evaluate(format=Format.FORWARDREF) objects (#138075)" (#140930)
This reverts commit 63e01d6bae.
This commit is contained in:
parent
121c219e30
commit
349de57839
3 changed files with 6 additions and 19 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue