Skip to content

Commit

Permalink
Fix mypy error by being more explicit and verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Nov 9, 2022
1 parent ce8777b commit c0f3e9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion IPython/core/magics/basic.py
Expand Up @@ -297,7 +297,10 @@ def page(self, parameter_s=''):
oname = args and args or '_'
info = self.shell._ofind(oname)
if info['found']:
txt = (raw and str or pformat)( info['obj'] )
if raw:
txt = str(info['obj'])
else:
txt = pformat(info['obj'])
page.page(txt)
else:
print('Object `%s` not found' % oname)
Expand Down

0 comments on commit c0f3e9a

Please sign in to comment.