'Resolve module-level global constants.
Return None or the attribute type'

def resolve_module_constants(self, typ, attr):

    assert isinstance(typ, types.Module)
    attrval = getattr(typ.pymod, attr)
    try:
        return self.resolve_value_type(attrval)
    except ValueError:
        pass
