File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -127,16 +127,24 @@ class Inextensible(NamedTuple):
127
127
x: int
128
128
129
129
[file driver.py]
130
- from typing import ForwardRef, Optional
130
+ import sys
131
+ from typing import Optional
131
132
from native import ClassIR, FuncIR, Record
132
133
134
+ if sys.version_info >= (3, 14):
135
+ from test.support import EqualToForwardRef
136
+ type_forward_ref = EqualToForwardRef
137
+ else:
138
+ from typing import ForwardRef
139
+ type_forward_ref = ForwardRef
140
+
133
141
assert Record.__annotations__ == {
134
142
'st_mtime': float,
135
143
'st_size': int,
136
144
'is_borrowed': bool,
137
145
'hash': str,
138
146
'python_path': tuple,
139
- 'type': ForwardRef ('ClassIR'),
147
+ 'type': type_forward_ref ('ClassIR'),
140
148
'method': FuncIR,
141
149
'shadow_method': type,
142
150
'classes': dict,
You can’t perform that action at this time.
0 commit comments