File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -1086,7 +1086,7 @@ def test_pep_695_generics_with_future_annotations_nested_in_function(self):
1086
1086
set (results .generic_func .__type_params__ ),
1087
1087
)
1088
1088
1089
- maxDiff = None
1089
+ maxDiff = None
1090
1090
1091
1091
def test_partial_evaluation (self ):
1092
1092
def f (
@@ -1126,10 +1126,19 @@ def f(
1126
1126
1127
1127
def test_partial_evaluation_cell (self ):
1128
1128
obj = object ()
1129
+
1129
1130
class RaisesAttributeError :
1130
1131
attriberr : obj .missing
1132
+
1131
1133
anno = get_annotations (RaisesAttributeError , format = Format .FORWARDREF )
1132
- self .assertEqual (anno , None )
1134
+ self .assertEqual (
1135
+ anno ,
1136
+ {
1137
+ "attriberr" : support .EqualToForwardRef (
1138
+ "obj.missing" , is_class = True , owner = RaisesAttributeError
1139
+ )
1140
+ },
1141
+ )
1133
1142
1134
1143
1135
1144
class TestCallEvaluateFunction (unittest .TestCase ):
You can’t perform that action at this time.
0 commit comments