Improve type annotations for the helper methods on a `CachedFunction`.