a
    |=icß  ã                   @   s0   d dl mZmZmZ dd„ Zdd„ Zdd„ ZdS )	é   )ÚFillTypeÚLineTypeÚZInterpc                 C   s   t | tƒrtj|  } | S )z§Coerce a FillType or string value to a FillType.

    Args:
        fill_type (FillType or str): Value to convert.

    Return:
        FillType: Converted value.
    )Ú
isinstanceÚstrr   Ú__members__)Z	fill_type© r   úd/home/droni/.local/share/virtualenvs/DPS-5Je3_V2c/lib/python3.9/site-packages/contourpy/enum_util.pyÚas_fill_type   s    	

r
   c                 C   s   t | tƒrtj|  } | S )z§Coerce a LineType or string value to a LineType.

    Args:
        line_type (LineType or str): Value to convert.

    Return:
        LineType: Converted value.
    )r   r   r   r   )Ú	line_typer   r   r	   Úas_line_type   s    	

r   c                 C   s   t | tƒrtj|  } | S )z¢Coerce a ZInterp or string value to a ZInterp.

    Args:
        z_interp (ZInterp or str): Value to convert.

    Return:
        ZInterp: Converted value.
    )r   r   r   r   )Zz_interpr   r   r	   Úas_z_interp    s    	

r   N)Z
_contourpyr   r   r   r
   r   r   r   r   r   r	   Ú<module>   s   