@@ -10,17 +10,22 @@ CPYTHON: bool = ...
1010
1111class _MemorizedSSH (type ):
1212 @classmethod
13- def __prepare__ (mcs : typing .Type [_MemorizedSSH ], name : str , bases : typing .Iterable [typing .Type ], ** kwargs : typing .Dict ) -> collections .OrderedDict : ...
13+ def __prepare__ (
14+ mcs : typing .Type [_MemorizedSSH ],
15+ name : str ,
16+ bases : typing .Iterable [typing .Type ],
17+ ** kwargs : typing .Dict
18+ ) -> collections .OrderedDict : ...
1419
1520 def __call__ ( # type: ignore
1621 cls : _MemorizedSSH ,
1722 host : str ,
18- port : int = ...,
19- username : typing .Optional [str ]= ...,
20- password : typing .Optional [str ]= ...,
21- private_keys : typing .Optional [typing .Iterable [paramiko .RSAKey ]]= ...,
22- auth : typing .Optional [ssh_auth .SSHAuth ]= ...,
23- verbose : bool = ...
23+ port : int = ...,
24+ username : typing .Optional [str ] = ...,
25+ password : typing .Optional [str ] = ...,
26+ private_keys : typing .Optional [typing .Iterable [paramiko .RSAKey ]] = ...,
27+ auth : typing .Optional [ssh_auth .SSHAuth ] = ...,
28+ verbose : bool = ...,
2429 ) -> SSHClientBase : ...
2530
2631 @classmethod
@@ -36,12 +41,12 @@ class SSHClientBase(api.ExecHelper, metaclass=_MemorizedSSH):
3641 def __init__ (
3742 self ,
3843 host : str ,
39- port : int = ...,
40- username : typing .Optional [str ]= ...,
41- password : typing .Optional [str ]= ...,
42- private_keys : typing .Optional [typing .Iterable [paramiko .RSAKey ]]= ...,
43- auth : typing .Optional [ssh_auth .SSHAuth ]= ...,
44- verbose : bool = ...
44+ port : int = ...,
45+ username : typing .Optional [str ] = ...,
46+ password : typing .Optional [str ] = ...,
47+ private_keys : typing .Optional [typing .Iterable [paramiko .RSAKey ]] = ...,
48+ auth : typing .Optional [ssh_auth .SSHAuth ] = ...,
49+ verbose : bool = ...,
4550 ) -> None : ...
4651
4752 @property
@@ -90,20 +95,25 @@ class SSHClientBase(api.ExecHelper, metaclass=_MemorizedSSH):
9095
9196 def reconnect (self ) -> None : ...
9297
93- def sudo (self , enforce : typing .Optional [bool ]= ...) -> typing .ContextManager : ...
98+ def sudo (self , enforce : typing .Optional [bool ] = ...) -> typing .ContextManager : ...
9499
95- def keepalive (self , enforce : bool = ...) -> typing .ContextManager : ...
100+ def keepalive (self , enforce : bool = ...) -> typing .ContextManager : ...
96101
97102 def execute_async (
98103 self ,
99104 command : str ,
100- stdin : typing .Union [typing .AnyStr , bytearray , None ]= ...,
101- open_stdout : bool = ...,
102- open_stderr : bool = ...,
103- verbose : bool = ...,
104- log_mask_re : typing .Optional [str ]= ...,
105+ stdin : typing .Union [typing .AnyStr , bytearray , None ] = ...,
106+ open_stdout : bool = ...,
107+ open_stderr : bool = ...,
108+ verbose : bool = ...,
109+ log_mask_re : typing .Optional [str ] = ...,
105110 ** kwargs : typing .Dict
106- ) -> typing .Tuple [paramiko .Channel , paramiko .ChannelFile , typing .Optional [paramiko .ChannelFile ], typing .Optional [paramiko .ChannelFile ]]: ...
111+ ) -> typing .Tuple [
112+ paramiko .Channel ,
113+ paramiko .ChannelFile ,
114+ typing .Optional [paramiko .ChannelFile ],
115+ typing .Optional [paramiko .ChannelFile ],
116+ ]: ...
107117
108118 def _exec_command (
109119 self ,
@@ -112,20 +122,20 @@ class SSHClientBase(api.ExecHelper, metaclass=_MemorizedSSH):
112122 stdout : paramiko .channel .ChannelFile ,
113123 stderr : paramiko .channel .ChannelFile ,
114124 timeout : typing .Union [int , None ],
115- verbose : bool = ...,
116- log_mask_re : typing .Optional [str ]= ...,
125+ verbose : bool = ...,
126+ log_mask_re : typing .Optional [str ] = ...,
117127 ** kwargs : typing .Dict
118128 ) -> exec_result .ExecResult : ...
119129
120130 def execute_through_host (
121131 self ,
122132 hostname : str ,
123133 command : str ,
124- auth : typing .Optional [ssh_auth .SSHAuth ]= ...,
125- target_port : int = ...,
126- verbose : bool = ...,
127- timeout : typing .Union [int , None ]= ...,
128- get_pty : bool = ...,
134+ auth : typing .Optional [ssh_auth .SSHAuth ] = ...,
135+ target_port : int = ...,
136+ verbose : bool = ...,
137+ timeout : typing .Union [int , None ] = ...,
138+ get_pty : bool = ...,
129139 ** kwargs : typing .Dict
130140 ) -> exec_result .ExecResult : ...
131141
@@ -134,9 +144,9 @@ class SSHClientBase(api.ExecHelper, metaclass=_MemorizedSSH):
134144 cls ,
135145 remotes : typing .Iterable [SSHClientBase ],
136146 command : str ,
137- timeout : typing .Union [int , None ]= ...,
138- expected : typing .Optional [typing .Iterable [int ]]= ...,
139- raise_on_err : bool = ...,
147+ timeout : typing .Union [int , None ] = ...,
148+ expected : typing .Optional [typing .Iterable [int ]] = ...,
149+ raise_on_err : bool = ...,
140150 ** kwargs : typing .Dict
141151 ) -> typing .Dict [typing .Tuple [str , int ], exec_result .ExecResult ]: ...
142152
@@ -146,7 +156,7 @@ class SSHClientBase(api.ExecHelper, metaclass=_MemorizedSSH):
146156
147157 def stat (self , path : str ) -> paramiko .sftp_attr .SFTPAttributes : ...
148158
149- def utime (self , path : str , times : typing .Optional [typing .Tuple [int , int ]]= ...) -> None : ...
159+ def utime (self , path : str , times : typing .Optional [typing .Tuple [int , int ]] = ...) -> None : ...
150160
151161 def isfile (self , path : str ) -> bool : ...
152162
0 commit comments