From 74ed0db2a7fb9aadde06815aa64e4428b237ef9f Mon Sep 17 00:00:00 2001 From: Kale Kundert Date: Fri, 17 May 2024 04:25:18 -0400 Subject: [PATCH] Don't import `pretty_errors` (#2543) * fix: don't import `pretty_errors` * fix: remove `pretty_errors` as a debug requirement (cherry picked from commit 4c2a1435524787563ee63378a676415f11d31838) --- requirements/debug.txt | 2 -- src/torchmetrics/__init__.py | 3 --- 2 files changed, 5 deletions(-) diff --git a/requirements/debug.txt b/requirements/debug.txt index 3c0e713aeda..0c64232c9a9 100644 --- a/requirements/debug.txt +++ b/requirements/debug.txt @@ -1,4 +1,2 @@ # NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package # in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment - -pretty-errors >=1.2.0, <1.3.0 diff --git a/src/torchmetrics/__init__.py b/src/torchmetrics/__init__.py index c1bff7ca459..b1549dfaf8b 100644 --- a/src/torchmetrics/__init__.py +++ b/src/torchmetrics/__init__.py @@ -14,9 +14,6 @@ _PACKAGE_ROOT = os.path.dirname(__file__) _PROJECT_ROOT = os.path.dirname(_PACKAGE_ROOT) -if package_available("pretty_errors"): - import pretty_errors # noqa: F401 - if package_available("PIL"): import PIL