code: def _get_pathcost_func(
      name: str
  ) -> Callable[[int, int, int, int, Any], float]:
      
      return ffi.cast(  # type: ignore
          "TCOD_path_func_t", ffi.addressof(lib, name)
      )
docs: Return a properly cast PathCostArray callback.