Skip to content

Commit

Permalink
type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Mar 6, 2021
1 parent 01d1563 commit bcd61cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rich/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def _is_jupyter() -> bool: # pragma: no cover
get_ipython # type: ignore
except NameError:
return False
ipython = get_ipython()
ipython = get_ipython() # type: ignore
shell = ipython.__class__.__name__ # type: ignore
if "google.colab" in str(ipython.__class__) or shell == "ZMQInteractiveShell":
return True # Jupyter notebook or qtconsole
Expand Down

0 comments on commit bcd61cc

Please sign in to comment.