示例#1
0
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()
    ]
示例#2
0
def singlefloat():
    return model.SomeSingleFloat()
示例#3
0
 def compute_result_annotation(self, *args_s, **kwds_s):
     from rpython.annotator import model as annmodel
     return annmodel.SomeSingleFloat()
示例#4
0
 def compute_annotation(self):
     from rpython.annotator import model as annmodel
     return annmodel.SomeSingleFloat()