##// END OF EJS Templates
Fix mypy error by being more explicit and verbose
Jason Grout -
Show More
@@ -297,7 +297,10 b' Currently the magic system has the following functions:""",'
297 oname = args and args or '_'
297 oname = args and args or '_'
298 info = self.shell._ofind(oname)
298 info = self.shell._ofind(oname)
299 if info['found']:
299 if info['found']:
300 txt = (raw and str or pformat)( info['obj'] )
300 if raw:
301 txt = str(info["obj"])
302 else:
303 txt = pformat(info["obj"])
301 page.page(txt)
304 page.page(txt)
302 else:
305 else:
303 print('Object `%s` not found' % oname)
306 print('Object `%s` not found' % oname)
General Comments 0
You need to be logged in to leave comments. Login now