Skip to content

Commit

Permalink
Don't import pretty_errors (#2543)
Browse files Browse the repository at this point in the history
* fix: don't import `pretty_errors`

* fix: remove `pretty_errors` as a debug requirement

(cherry picked from commit 4c2a143)
  • Loading branch information
kalekundert authored and Borda committed Aug 2, 2024
1 parent 3f11239 commit e5fbc03
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions requirements/debug.txt
Original file line number Diff line number Diff line change
@@ -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
3 changes: 0 additions & 3 deletions src/torchmetrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e5fbc03

Please sign in to comment.