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