We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 749f258 commit 3330b42Copy full SHA for 3330b42
mypyc/test-data/run-tuples.test
@@ -127,16 +127,24 @@ class Inextensible(NamedTuple):
127
x: int
128
129
[file driver.py]
130
-from typing import ForwardRef, Optional
+import sys
131
+from typing import Optional
132
from native import ClassIR, FuncIR, Record
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
+
141
assert Record.__annotations__ == {
142
'st_mtime': float,
143
'st_size': int,
144
'is_borrowed': bool,
145
'hash': str,
146
'python_path': tuple,
- 'type': ForwardRef('ClassIR'),
147
+ 'type': type_forward_ref('ClassIR'),
148
'method': FuncIR,
149
'shadow_method': type,
150
'classes': dict,
0 commit comments