From b1401f76f9cdd9814d9830e329f676e1b4325fe9 2020-06-16 02:13:59 From: Brendan Gerrity Date: 2020-06-16 02:13:59 Subject: [PATCH] [interactiveshell] add type annotation to run cell --- diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index e52b419..14f8248 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -2862,7 +2862,7 @@ class InteractiveShell(SingletonConfigurable): self.events.trigger('post_run_cell', result) return result - def _run_cell(self, raw_cell:str, store_history:bool, silent:bool, shell_futures:bool): + def _run_cell(self, raw_cell:str, store_history:bool, silent:bool, shell_futures:bool) -> ExecutionResult: """Internal method to run a complete IPython cell.""" coro = self.run_cell_async( raw_cell, @@ -2890,7 +2890,6 @@ class InteractiveShell(SingletonConfigurable): result.error_in_exec = e self.showtraceback(running_compiled_code=True) return result - return def should_run_async(self, raw_cell: str) -> bool: """Return whether a cell should be run asynchronously via a coroutine runner