From 17dee95f119e2ebab794708de43d40245e38cca7 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Thu, 22 Dec 2022 20:07:48 +0000 Subject: [PATCH] fix pretty --- rich/pretty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rich/pretty.py b/rich/pretty.py index 7de32da25..83c6c1e67 100644 --- a/rich/pretty.py +++ b/rich/pretty.py @@ -30,7 +30,7 @@ try: import attr as _attr_module - _has_attrs = True + _has_attrs = hasattr(_attr_module, "ib") except ImportError: # pragma: no cover _has_attrs = False