a
    ¦ˆcT  ã                   @   s   d dl Z G dd„ de jƒZdS )é    Nc                   @   s(   e Zd ZdZdd„ Zdd„ Zdd„ ZdS )	Ú	INotifiera?   Interface for all notifiers.

    An instance of notifier must be a callable, i.e. ``__call__`` must be
    implemented and cannot be None. The signature of that callable should be
    compatible with the observables the notifier will be given to. This
    interface does not define what that signature should be.
    c                 O   s   t dƒ‚dS )z\ Called by an observable.
        The signature is not restricted by the interface.
        z__call__ must be implemented.N©ÚNotImplementedError)ÚselfÚargsÚkwargs© r   úa/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/traits/observation/_i_notifier.pyÚ__call__   s    zINotifier.__call__c                 C   s   t dƒ‚dS )zv Add this notifier to the observable.

        Parameters
        ----------
        observable : IObservable
        zadd_to must be implemented.Nr   ©r   Z
observabler   r   r	   Úadd_to   s    zINotifier.add_toc                 C   s   t dƒ‚dS )a   Remove this notifier or a notifier equivalent to this one
        from the observable.

        Parameters
        ----------
        observable : IObservable

        Raises
        ------
        NotifierNotFound
            If the notifier cannot be found.
        z remove_from must be implemented.Nr   r   r   r   r	   Úremove_from&   s    zINotifier.remove_fromN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   r   r   r   r   r	   r      s   	r   )ÚabcÚABCr   r   r   r   r	   Ú<module>   s   