Did I find the right examples for you? yes no

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

        def gtype_to_rest(gtype):
    p = gtype.pytype
    if p is None:
        return ""
    name = p.__name__
    if p.__module__ != "__builtin__":
        return ":class:`%s`" % (p.__module__ + "." + name)
    return ":obj:`%s`" % name
        


src/p/g/pgi-docgen-HEAD/pgidocgen/repo.py   pgi-docgen(Download)
from .namespace import get_namespace
from . import util
from .util import unindent, gtype_to_rest, escape_identifier
 
from .funcsig import FuncSignature, py_type_to_class_ref, get_type_name
            value_desc = util.instance_to_rest(
                spec.value_type.pytype, default_value)
            type_desc = gtype_to_rest(spec.value_type)
            readable = spec.flags & GObject.ParamFlags.READABLE
            writable = spec.flags & GObject.ParamFlags.WRITABLE
            value_desc = util.instance_to_rest(
                spec.value_type.pytype, spec.default_value)
            type_desc = gtype_to_rest(spec.value_type)
            readable = spec.flags & GObject.ParamFlags.READABLE
            writable = spec.flags & GObject.ParamFlags.WRITABLE