From 94b008acb9f794609e7470c5d63035cd74be2d43 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Wed, 6 Oct 2021 13:46:03 +0100 Subject: [PATCH] exception for py3.6 --- rich/pretty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rich/pretty.py b/rich/pretty.py index 7623444d..1a600a5d 100644 --- a/rich/pretty.py +++ b/rich/pretty.py @@ -628,7 +628,7 @@ def traverse( is_dataclass(obj) and not isinstance(obj, type) and not fake_attributes - and _is_dataclass_repr(obj) + and (_is_dataclass_repr(obj) or py_version == (3, 6)) ): obj_id = id(obj) if obj_id in visited_ids: