Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/c/o/copperhead-HEAD/copperhead/compiler/conversions.py   copperhead(Download)
def front_to_back_type(x):
    if isinstance(x, T.Polytype):
        variables = [ET.Monotype(str(y)) for y in x.variables]
        sub = front_to_back_type(x.monotype())
        return ET.Polytype(variables, sub)
            return ET.Void
    elif isinstance(x, str):
        return ET.Monotype(str(x))
    raise ValueError("Can't convert %s to backendtypes" % str(x))