From 09cab8be7e3f85569a361048fb5357de43d3b4fa Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 25 Mar 2022 11:36:22 -0400 Subject: [PATCH] fix: keep pycln from removing load_ipython_extension --- rich/__init__.py | 2 +- rich/traceback.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rich/__init__.py b/rich/__init__.py index 01faa6e6..8fe9911a 100644 --- a/rich/__init__.py +++ b/rich/__init__.py @@ -3,7 +3,7 @@ import os from typing import Callable, IO, TYPE_CHECKING, Any, Optional, Union -from ._extension import load_ipython_extension +from ._extension import load_ipython_extension # noqa: F401 __all__ = ["get_console", "reconfigure", "print", "inspect"] diff --git a/rich/traceback.py b/rich/traceback.py index eb365bac..912821cb 100644 --- a/rich/traceback.py +++ b/rich/traceback.py @@ -5,7 +5,7 @@ import platform import sys from dataclasses import dataclass, field from traceback import walk_tb -from types import FrameType, ModuleType, TracebackType +from types import ModuleType, TracebackType from typing import Any, Callable, Dict, Iterable, List, Optional, Sequence, Type, Union from pygments.lexers import guess_lexer_for_filename