this should be `type(func)`.