def generic_named_decl(tp):
    if isinstance(tp, typedesc.FundamentalType) or \
       isinstance(tp, typedesc.Typedef):
        return tp.name + ' %s'
    elif isinstance(tp, typedesc.PointerType) \
        or isinstance(tp, typedesc.ArrayType):
        return pointer_named_decl(tp)
    elif isinstance(tp, typedesc.CvQualifiedType):
        return generic_named_decl(tp.typ)
    elif isinstance(tp, typedesc.Structure):
        return tp.name + ' %s'
    elif isinstance(tp, typedesc.Union):
        return tp.name + ' %s'
    elif isinstance(tp, typedesc.Enumeration):
        return tp.name + ' %s'

    raise ValueError(("Not handled in generic_named_decl: ", tp))
Decorator for field to filter conversion routine.
dataset/ETHPy150Open cournape/cython-codegen/cycodegenlib/cytypes.py/generic_named_decl--crossover with--dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/model/filters.py/convert