def get_pre_release(version):
 if (not is_pre_release(version)):
  raise NotAPreRelease(version)
 parsed_version = parse_version(version)
 return int(parsed_version.pre_release)

def get_pre_release ( version ) : if ( not is_pre_release ( version ) ) : raise NotAPreRelease ( version ) parsed_version = parse_version ( version ) return int ( parsed_version . pre_release )
return the number of a pre-release .