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