U
    ˆjÎ  ã                   @  sŒ   U d dl mZ d dlmZmZ d dlmZ d dlmZ erRd dl	m
Z
 d dlmZ d dlmZ dejiZd	ed
< dddddddœdd„ZdS )é    )Úannotations)ÚTYPE_CHECKINGÚCallable)ÚDeferred)ÚFailure)ÚConchOptions)ÚSSHUserAuthClient)Údirectr	   z]dict[str, Callable[[str, int, ConchOptions, direct._VHK, SSHUserAuthClient], Deferred[None]]]ÚconnectTypesÚstrÚintr   zdirect._VHKr   zDeferred[None])ÚhostÚportÚoptionsÚverifyHostKeyÚuserAuthObjectÚreturnc                   sD   dg‰dddœ‡ ‡‡‡‡‡‡fdd„‰ t ƒ }| d ¡ | ˆ ¡ |S )Nr	   zFailure | NonezDeferred[None] | None | Failure)ÚinterimResultr   c                  s8   ˆs| S ˆ  d¡}t| }|ˆˆˆˆˆƒ}| ˆ ¡ |S )Nr   )Úpopr
   Z
addErrback)r   ZconnectTypeÚfÚd©Ú
_ebConnectr   r   r   ZuseConnectsr   r   © ú@/tmp/pip-unpacked-wheel-j5h_c8_q/twisted/conch/client/connect.pyr   "   s    

zconnect.<locals>._ebConnect)r   ÚcallbackZaddCallback)r   r   r   r   r   Ústartr   r   r   Úconnect   s     	

r   N)Ú
__future__r   Útypingr   r   Ztwisted.internet.deferr   Ztwisted.python.failurer   Ztwisted.conch.client.optionsr   Ztwisted.conch.ssh.userauthr   Ztwisted.conch.clientr	   r   r
   Ú__annotations__r   r   r   r   Ú<module>   s     ÿý
