
    9-ed                         U d dl m Z  d dlmZ d dlmZ  G d de          Z G d d          Zeed<   	 d d	lmZ d
S # e	$ r  e            ZY d
S w xY w)    )getpass)Any)Protocolc                   V    e Zd Zedededdfd            Zedededefd            ZdS )TConsoleargskwargsreturnNc                      d S N r   r	   s     ;lib/python3.11/site-packages/anaconda_cloud_auth/console.pyprintzTConsole.print           c                      d S r   r   r   s     r   inputzTConsole.input   r   r   )__name__
__module____qualname__staticmethodr   r   r   r   r   r   r   r      s|        S C D    \ S C C    \  r   r   c            
       d    e Zd ZdZedededdfd            Zeddded	ededefd
            ZdS )SimpleConsolez
    A very simple console class to mimic the necessary methods we use from rich,
    in case anaconda_cloud_cli is unavailable.
    r   r	   r
   Nc                      t          | i | d S r   )r   r   s     r   r   zSimpleConsole.print   s    tvr   F)passwordr   c                 Z    | rt          |d                   S t          |d                   S )Nr   )r   r   )r   r   r	   s      r   r   zSimpleConsole.input   s,     	"47###a>>!r   )	r   r   r   __doc__r   r   r   boolr   r   r   r   r   r      s         
 S C D    \ +0 " " "S "D "C "C " " " \" " "r   r   console)r    N)
r   typingr   r   r   r   __annotations__anaconda_cloud_clir    ImportErrorr   r   r   <module>r%      s                          x   " " " " " " " "$ 
   ********   mooGGGGs   = AA