Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions mypyc/test-data/run-tuples.test
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,24 @@ class Inextensible(NamedTuple):
x: int

[file driver.py]
from typing import ForwardRef, Optional
import sys
from typing import Optional
from native import ClassIR, FuncIR, Record

if sys.version_info >= (3, 14):
from test.support import EqualToForwardRef
type_forward_ref = EqualToForwardRef
else:
from typing import ForwardRef
type_forward_ref = ForwardRef

assert Record.__annotations__ == {
'st_mtime': float,
'st_size': int,
'is_borrowed': bool,
'hash': str,
'python_path': tuple,
'type': ForwardRef('ClassIR'),
'type': type_forward_ref('ClassIR'),
'method': FuncIR,
'shadow_method': type,
'classes': dict,
Expand Down