diff --git a/src/black/handle_ipynb_magics.py b/src/black/handle_ipynb_magics.py index 2f57fd1c01e..2b6b9209211 100644 --- a/src/black/handle_ipynb_magics.py +++ b/src/black/handle_ipynb_magics.py @@ -59,7 +59,8 @@ class Replacement: def jupyter_dependencies_are_installed(*, verbose: bool, quiet: bool) -> bool: try: # isort: off - # tokenize_rt is less commonly installed than IPython and IPython is expensive to import + # tokenize_rt is less commonly installed than IPython + # and IPython is expensive to import import tokenize_rt # noqa:F401 import IPython # noqa:F401