File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -310,12 +310,12 @@ export class PythonShell extends EventEmitter {
310310 }
311311
312312 /**
313- * Runs a Python script and returns collected messages as a promise
313+ * Runs a Python script and returns collected messages as a promise.
314+ * If the promise is rejected, the err will probably be of type PythonShellErrorWithLogs
314315 * @param scriptPath The path to the script to execute
315316 * @param options The execution options
316- * @return a promise with the output from the python script
317317 */
318- static run ( scriptPath : string , options ?: Options ) {
318+ static run ( scriptPath : string , options ?: Options ) : Promise < any [ ] > {
319319 return new Promise ( ( resolve , reject ) => {
320320 let pyshell = new PythonShell ( scriptPath , options ) ;
321321 let output = [ ] ;
You can’t perform that action at this time.
0 commit comments