From 75da19abb8cef733e6f2473c81923285ce1ebb93 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Tue, 1 Feb 2022 09:04:18 +0100 Subject: [PATCH] Update IPython/core/interactiveshell.py Co-authored-by: CAM Gerlach --- IPython/core/interactiveshell.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index 857a0208f74..2d1c7107b73 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -1675,7 +1675,9 @@ def object_inspect_mime(self, oname, detail_level=0, omit_sections=()): with self.builtin_trap: info = self._object_find(oname) if info.found: - docformat = sphinxify(self.object_inspect(oname)) if self.sphinxify_docstring else None + docformat = ( + sphinxify(self.object_inspect(oname)) if self.sphinxify_docstring else None + ) return self.inspector._get_info( info.obj, oname,