diff --git a/rich/console.py b/rich/console.py index 46caf664..4d3cb534 100644 --- a/rich/console.py +++ b/rich/console.py @@ -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