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,