@@ -27,59 +27,91 @@ class ExecApiMixin:
2727 def exec_start (
2828 self ,
2929 exec_id : str ,
30- detach : Literal [True ] = ... ,
30+ detach : Literal [True ],
3131 tty : bool = False ,
3232 stream : bool = False ,
3333 socket : bool = False ,
3434 demux : bool = False ,
3535 ) -> str : ...
3636 @overload
37+ def exec_start (
38+ self , exec_id : str , detach : Literal [False ], tty : bool , stream : bool , socket : Literal [True ], demux : bool = False
39+ ) -> SocketIO | _BufferedReaderStream | SSHSocket : ...
40+ @overload
3741 def exec_start (
3842 self ,
3943 exec_id : str ,
4044 detach : Literal [False ] = False ,
4145 tty : bool = False ,
4246 stream : bool = False ,
43- socket : Literal [True ] = ...,
4447 demux : bool = False ,
48+ * ,
49+ socket : Literal [True ],
4550 ) -> SocketIO | _BufferedReaderStream | SSHSocket : ...
4651 @overload
52+ def exec_start (
53+ self , exec_id : str , detach : Literal [False ], tty : bool , stream : Literal [True ], socket : Literal [False ], demux : Literal [True ]
54+ ) -> CancellableStream [tuple [str | None , str | None ]]: ...
55+ @overload
4756 def exec_start (
4857 self ,
4958 exec_id : str ,
5059 detach : Literal [False ] = False ,
5160 tty : bool = False ,
52- stream : Literal [True ] = ...,
5361 socket : Literal [False ] = False ,
54- demux : Literal [True ] = ...,
62+ * ,
63+ stream : Literal [True ],
64+ demux : Literal [True ],
5565 ) -> CancellableStream [tuple [str | None , str | None ]]: ...
5666 @overload
5767 def exec_start (
5868 self ,
5969 exec_id : str ,
60- detach : bool = False ,
70+ detach : Literal [False ],
71+ tty : bool ,
72+ stream : Literal [True ],
73+ socket : Literal [False ],
74+ demux : Literal [False ],
75+ ) -> CancellableStream [str ]: ...
76+ @overload
77+ def exec_start (
78+ self ,
79+ exec_id : str ,
80+ detach : Literal [False ] = False ,
6181 tty : bool = False ,
62- stream : Literal [True ] = ...,
63- socket : bool = False ,
64- demux : bool = False ,
82+ socket : Literal [False ] = False ,
83+ demux : Literal [False ] = False ,
84+ * ,
85+ stream : Literal [True ],
6586 ) -> CancellableStream [str ]: ...
6687 @overload
6788 def exec_start (
6889 self ,
6990 exec_id : str ,
70- detach : bool = False ,
91+ detach : Literal [False ],
92+ tty : bool ,
93+ stream : Literal [False ],
94+ socket : Literal [False ],
95+ demux : Literal [True ],
96+ ) -> tuple [str | None , str | None ]: ...
97+ @overload
98+ def exec_start (
99+ self ,
100+ exec_id : str ,
101+ detach : Literal [False ] = False ,
71102 tty : bool = False ,
72- stream : bool = False ,
73- socket : bool = False ,
74- demux : Literal [True ] = ...,
103+ stream : Literal [False ] = False ,
104+ socket : Literal [False ] = False ,
105+ * ,
106+ demux : Literal [True ],
75107 ) -> tuple [str | None , str | None ]: ...
76108 @overload
77109 def exec_start (
78110 self ,
79111 exec_id : str ,
80- detach : bool = False ,
112+ detach : Literal [ False ] = False ,
81113 tty : bool = False ,
82- stream : bool = False ,
83- socket : bool = False ,
84- demux : bool = False ,
114+ stream : Literal [ False ] = False ,
115+ socket : Literal [ False ] = False ,
116+ demux : Literal [ False ] = False ,
85117 ) -> str : ...
0 commit comments