docs: def _stamp_and_update_hook(method,  # suppress(too-many-arguments)
                             dependencies,
                             stampfile,
                             func,
                             *args,
                             **kwargs):
      """Write stamp and call update_stampfile_hook on method."""
      result = _stamp(stampfile, func, *args, **kwargs)
      method.update_stampfile_hook(dependencies)
      return result