o
    h                     @  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  F   t | tr!ztj|  W S  ty  } z	td|  d|d}~ww | S )zCoerce a FillType or string value to a FillType.

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

    Return:
        FillType: Converted value.
    'z' is not a valid FillTypeN)
isinstancestrr   __members__KeyError
ValueError)r   e r   g/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/contourpy/enum_util.pyas_fill_type      
	r   	line_typeLineType | strr   c              
   C  r	   )zCoerce a LineType or string value to a LineType.

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

    Return:
        LineType: Converted value.
    r
   z' is not a valid LineTypeN)r   r   r   r   r   r   )r   r   r   r   r   as_line_type   r   r   z_interpZInterp | strr   c              
   C  r	   )zCoerce a ZInterp or string value to a ZInterp.

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

    Return:
        ZInterp: Converted value.
    r
   z' is not a valid ZInterpN)r   r   r   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   contourpy._contourpyr   r   r   r   r   r   r   r   r   r   <module>   s
    

