示例#1
0
def test_dataclass_bad_inst2(cls, x, y):
    return make_record(cls, x, y)
示例#2
0
 def f1(x, y):
     return make_record(Point, x, y)
示例#3
0
def test_prim_make_record():
    t = pytype_to_myiatype(Point)
    assert make_record(t, 1, 2) == Point(1, 2)
示例#4
0
def test_prim_make_record():
    assert make_record(Point, 1, 2) == Point(1, 2)