Source

pypy / pypy / annotation / types.py

The branch 'signatures' does not exist.
from pypy.annotation import model
from pypy.annotation.listdef import ListDef


def int():
    return model.SomeInteger()

def str():
    return model.SomeString()

def char():
    return model.SomeChar()

def list(element):
    listdef = ListDef(None, element, mutated=True, resized=True)
    return model.SomeList(listdef)