o
    Ni                     @  s$   d dl mZ dddZdddZdS )    )annotations
entry_typestrvaluereturn	list[str]c                 C  s   | dkrzt dd|W S  ty   t dd| Y S w | dkr%t dd|S | dkr/t dd|S | dv r9t dd|S d	|  d
|}t|)Nsingle      pairtriple   >   seeseealsor   invalid  index entry )_split_into
ValueError)r   r   msg r   M/home/ubuntu/.local/lib/python3.10/site-packages/sphinx/util/index_entries.pysplit_index_msg   s   r   ninttypec                 C  sL   dd | d| d D }tttd|| k r$d| d|}t||S )z@Split an index entry into a given number of parts at semicolons.c                 S  s   g | ]}|  qS r   )strip).0xr   r   r   
<listcomp>   s    z_split_into.<locals>.<listcomp>;r
   Nr   r   )splitlenlistfilterr   )r   r   r   partsr   r   r   r   r      s
   r   N)r   r   r   r   r   r   )r   r   r   r   r   r   r   r   )
__future__r   r   r   r   r   r   r   <module>   s    
