Пример #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 longfloat():
    return model.SomeLongFloat()
Пример #3
0
 def compute_annotation(self):
     from rpython.annotator import model as annmodel
     return annmodel.SomeLongFloat()