def is_pre_release(version):
 parsed_version = parse_version(version)
 return ((parsed_version.pre_release is not None) and (parsed_version.weekly_release is None) and (parsed_version.commit_count is None) and (parsed_version.dirty is None))

def is_pre_release ( version ) : parsed_version = parse_version ( version ) return ( ( parsed_version . pre_release is not None ) and ( parsed_version . weekly_release is None ) and ( parsed_version . commit_count is None ) and ( parsed_version . dirty is None ) )
return whether the version corresponds to a pre-release .