##// END OF EJS Templates
[interactiveshell] add type annotation to run cell
Brendan Gerrity -
Show More
@@ -2862,7 +2862,7 b' class InteractiveShell(SingletonConfigurable):'
2862 2862 self.events.trigger('post_run_cell', result)
2863 2863 return result
2864 2864
2865 def _run_cell(self, raw_cell:str, store_history:bool, silent:bool, shell_futures:bool):
2865 def _run_cell(self, raw_cell:str, store_history:bool, silent:bool, shell_futures:bool) -> ExecutionResult:
2866 2866 """Internal method to run a complete IPython cell."""
2867 2867 coro = self.run_cell_async(
2868 2868 raw_cell,
@@ -2890,7 +2890,6 b' class InteractiveShell(SingletonConfigurable):'
2890 2890 result.error_in_exec = e
2891 2891 self.showtraceback(running_compiled_code=True)
2892 2892 return result
2893 return
2894 2893
2895 2894 def should_run_async(self, raw_cell: str) -> bool:
2896 2895 """Return whether a cell should be run asynchronously via a coroutine runner
General Comments 0
You need to be logged in to leave comments. Login now