3
ˆd  ã               @   s@   d Z ddlmZ ddlmZ G dd„ deƒZG dd„ deƒZdS )	z» Base classes for adapters.

Adapters do not have to inherit from these classes, as long as their
constructor takes the object to be adapted as the first and only
*positional* argument.

é    )Ú	HasTraits)ÚAnyc               @   s   e Zd ZdZdd„ ZdS )ÚPurePythonAdapterz& Base class for pure Python adapters. c             C   s
   || _ d S )N)Úadaptee)Úselfr   © r   ú;/tmp/pip-build-7vycvbft/traits/traits/adaptation/adapter.pyÚ__init__   s    zPurePythonAdapter.__init__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   r   r   r   r   r      s   r   c                   s$   e Zd ZdZ‡ fdd„ZeZ‡  ZS )ÚAdapterz& Base class for adapters with traits. c                s   ||d< t ƒ jf |Ž d S )Nr   )Úsuperr	   )r   r   Ztraits)Ú	__class__r   r   r	   "   s    zAdapter.__init__)r
   r   r   r   r	   r   r   Ú__classcell__r   r   )r   r   r      s   r   N)r   Ztraits.has_traitsr   Ztraits.trait_typesr   Úobjectr   r   r   r   r   r   Ú<module>   s   