'The NPM callconv has already converted simplified optional types.
We can simply use the value type from it.'

def _simplified_return_type(self):

    restype = self.fndesc.restype
    if isinstance(restype, types.Optional):
        return restype.type
    else:
        return restype
