o
    DDi                     @   s6   d dl mZmZ edZdedee defddZdS )	    )TypeTypeVarTnodenodetypereturnc                 C   s*   t | |std|j d| jj d| S )a  
    Takes any python object, and a LibCST :class:`~libcst.CSTNode` subclass and
    refines the type of the python object. This is most useful when you already
    know that a particular object is a certain type but your type checker is not
    convinced. Note that this does an instance check for you and raises an
    exception if it is not the right type, so this should be used in situations
    where you are sure of the type given previous checks.
    zExpected a z but got a !)
isinstance	Exception__name__	__class__)r   r    r   N/var/www/Datamplify/venv/lib/python3.10/site-packages/libcst/helpers/common.pyensure_type   s
   

r   N)typingr   r   r   objectr   r   r   r   r   <module>   s   