docs: def prerelease_generator(current_version: str, prerelease: Optional[str] = None) -> str:
      """
      X.YaN   # Alpha release
      X.YbN   # Beta release
      X.YrcN  # Release Candidate
      X.Y  # Final
  
      This function might return something like 'alpha1'
      but it will be handled by Version.
      """
      if not prerelease:
          return ""
  
      version = Version(current_version)
      new_prerelease_number: int = 0
      if version.is_prerelease and prerelease.startswith(version.pre[0]):
          prev_prerelease: int = list(version.pre)[1]
          new_prerelease_number = prev_prerelease + 1
      pre_version = f"{prerelease}{new_prerelease_number}"
      return pre_version