def get_docs_version(version=None, positions=2):
 version = get_complete_version(version)
 candidate_pos = _get_candidate_pos(version)
 if (positions > candidate_pos):
  positions = candidate_pos
 if _is_development_candidate(version):
  return 'dev'
 return _get_version_string(version[:positions])

def get_docs_version ( version = None , positions = 2 ) : version = get_complete_version ( version ) candidate_pos = _get_candidate_pos ( version ) if ( positions > candidate_pos ) : positions = candidate_pos if _is_development_candidate ( version ) : return 'dev' return _get_version_string ( version [ : positions ] )
return the version used in documentation .