def test_float(): @signature(types.longfloat(), types.singlefloat(), returns=types.float()) def f(a, b): return 3.0 assert getsig(f) == [ model.SomeLongFloat(), model.SomeSingleFloat(), model.SomeFloat() ]
def longfloat(): return model.SomeLongFloat()
def compute_annotation(self): from rpython.annotator import model as annmodel return annmodel.SomeLongFloat()