Did I find the right examples for you? yes no

All Samples(12)  |  Call(8)  |  Derive(2)  |  Import(2)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/annotation/unaryop.py   plexnet(Download)
 
from types import MethodType
from pypy.annotation.model import \
     SomeObject, SomeInteger, SomeBool, SomeString, SomeChar, SomeList, \
     SomeDict, SomeTuple, SomeImpossibleValue, \
class __extend__(SomeGenericCallable):
    def call(self, args):
        bookkeeper = getbookkeeper()
        for arg, expected in zip(args.unpack()[0], self.args_s):
            assert expected.contains(arg)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/extfunc.py   plexnet(Download)
    def compute_result_annotation(self):
        from pypy.annotation import model as annmodel
        return annmodel.SomeGenericCallable([annotation(i, self.bookkeeper)
                                             for i in self.instance.args],
                           annotation(self.instance.result, self.bookkeeper))

src/s/y/Sypy-HEAD/annotation/unaryop.py   Sypy(Download)
 
from types import MethodType
from pypy.annotation.model import \
     SomeObject, SomeInteger, SomeBool, SomeString, SomeChar, SomeList, \
     SomeDict, SomeTuple, SomeImpossibleValue, SomeUnicodeCodePoint, \
class __extend__(SomeGenericCallable):
    def call(self, args):
        bookkeeper = getbookkeeper()
        for arg, expected in zip(args.unpack()[0], self.args_s):
            assert expected.contains(arg)

src/s/y/Sypy-HEAD/rpython/extfunc.py   Sypy(Download)
    def compute_result_annotation(self):
        return annmodel.SomeGenericCallable([annotation(i, self.bookkeeper)
                                             for i in self.instance.args],
                           annotation(self.instance.result, self.bookkeeper))
 

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/annotation/test/test_annrpython.py   plexnet(Download)
        a = self.RPythonAnnotator(policy=policy.AnnotatorPolicy())
        s = a.build_types(g, [annmodel.SomeGenericCallable(
            args=[annmodel.SomeFloat()], result=annmodel.SomeInteger()),
                              annmodel.SomeFloat()])
        assert isinstance(s, annmodel.SomeInteger)

src/s/y/Sypy-HEAD/annotation/test/test_annrpython.py   Sypy(Download)
        a = self.RPythonAnnotator(policy=policy.AnnotatorPolicy())
        s = a.build_types(g, [annmodel.SomeGenericCallable(
            args=[annmodel.SomeFloat()], result=annmodel.SomeInteger()),
                              annmodel.SomeFloat()])
        assert isinstance(s, annmodel.SomeInteger)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/test/test_extfunc.py   plexnet(Download)
class DTestFuncEntry(ExtFuncEntry):
    _about_ = d
    name = 'd'
    signature_args = [annmodel.SomeGenericCallable(args=[], result=
                                                   annmodel.SomeFloat())]

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/test/test_rgeneric.py   plexnet(Download)
 
        g._annenforceargs_ = policy.Sig(annmodel.SomeGenericCallable(
            args=[annmodel.SomeFloat()], result=annmodel.SomeInteger()),
                                        float)
 

src/s/y/Sypy-HEAD/rpython/test/test_rgeneric.py   Sypy(Download)
 
        g._annenforceargs_ = policy.Sig(annmodel.SomeGenericCallable(
            args=[annmodel.SomeFloat()], result=annmodel.SomeInteger()),
                                        float)
 

src/s/y/Sypy-HEAD/rpython/test/test_extfunc.py   Sypy(Download)
        class DTestFuncEntry(ExtFuncEntry):
            _about_ = d
            name = 'd'
            signature_args = [annmodel.SomeGenericCallable(args=[], result=
                                                           annmodel.SomeFloat())]