
    j'                    j    d Z ddlmZ ddlmZ ddlmZ ddlmZ edd
            Z	edd            Z
dS )z(Generic functions for extending IPython.    )annotations)AnyTryNext)singledispatchobjr   returnNonec                    t           )zCalled when you do obj?r   )r   s    ]/home/ubuntu/.hermes/hermes-agent/venv/lib/python3.11/site-packages/IPython/utils/generics.pyinspect_objectr      s	     M    prev_completions	list[str]c                    t           )ay  Custom completer dispatching for python objects.

    Parameters
    ----------
    obj : object
        The object to complete.
    prev_completions : list
        List of attributes discovered so far.
    This should return the list of attributes in obj. If you only wish to
    add to the attributes already discovered normally, return
    own_attrs + prev_completions.
    r   )r   r   s     r   complete_objectr      s	     Mr   N)r   r   r	   r
   )r   r   r   r   r	   r   )__doc__
__future__r   typingr   IPython.core.errorr   	functoolsr   r   r    r   r   <module>r      s    . . " " " " " "       & & & & & & $ $ $ $ $ $    
      r   