o
    ùeª  ã                   @  sB   d dl mZ d dlmZmZmZ ddd„Zddd„Zddd„ZdS )é    )Úannotations)ÚFillTypeÚLineTypeÚZInterpÚ	fill_typeúFillType | strÚreturnr   c                 C  ó   t | tƒr
tj|  S | 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__)r   © r   úCD:\Projects\ConvertPro\env\Lib\site-packages\contourpy/enum_util.pyÚas_fill_type   ó   
	
r   Ú	line_typeúLineType | strr   c                 C  r	   )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   )r   r   r   r   Úas_line_type   r   r   Úz_interpúZInterp | strr   c                 C  r	   )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   )r   r   r   r   Úas_z_interp$   r   r   N)r   r   r   r   )r   r   r   r   )r   r   r   r   )	Ú
__future__r   Zcontourpy._contourpyr   r   r   r   r   r   r   r   r   r   Ú<module>   s
    

