Skip to content

Commit d27ffd8

Browse files
committed
add test
1 parent d095e2c commit d27ffd8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Lib/test/test_annotationlib.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,13 @@ def f(
11241124
},
11251125
)
11261126

1127+
def test_partial_evaluation_cell(self):
1128+
obj = object()
1129+
class RaisesAttributeError:
1130+
attriberr: obj.missing
1131+
anno = get_annotations(RaisesAttributeError, format=Format.FORWARDREF)
1132+
self.assertEqual(anno, None)
1133+
11271134

11281135
class TestCallEvaluateFunction(unittest.TestCase):
11291136
def test_evaluation(self):

0 commit comments

Comments
 (0)