
    (&h                     .    d dl mZ  G d de          ZdS )    )IntEnumc                   (    e Zd ZdZed             ZdS )	ParamEnumzWraps IntEnum to provide validation of a requested item.

    Intended for enums used for function parameters.

    Use enum.get_value(item) for this behavior instead of builtin enum[item].
    c           	          	 | |         j         S # t          $ rC d | D             }t          d                    |d                    |                              w xY w)zGValidate item and raise a ValueError with valid options if not present.c                     h | ]	}|j         
S  )name).0es     H/var/www/html/reinick/venv/lib/python3.11/site-packages/shapely/_enum.py	<setcomp>z&ParamEnum.get_value.<locals>.<setcomp>   s    111QV111    z/'{}' is not a valid option, must be one of '{}'z', ')valueKeyError
ValueErrorformatjoin)clsitemvalid_optionss      r   	get_valuezParamEnum.get_value   sw    	t9?" 	 	 	11S111MAHH&++m44   	s
    AAN)__name__
__module____qualname____doc__classmethodr   r   r   r   r   r      s9          
 
 [
 
 
r   r   N)enumr   r   r   r   r   <module>r      sK                  r   